printers: Fix GCancellable leak

Use the dialog cancellable instead of leaking one each time the PPD is set.
This commit is contained in:
Robert Ancell 2018-11-23 14:14:08 +13:00
parent e20fd185c8
commit 2c6eb2b4fd

View file

@ -225,13 +225,9 @@ ppd_selection_dialog_response_cb (GtkDialog *dialog,
if (self->printer_name && ppd_name)
{
GCancellable *cancellable;
cancellable = g_cancellable_new ();
printer_set_ppd_async (self->printer_name,
ppd_name,
cancellable,
self->cancellable,
set_ppd_cb,
self);