printers: Fix GCancellable leak
Use the dialog cancellable instead of leaking one each time the PPD is set.
This commit is contained in:
parent
e20fd185c8
commit
2c6eb2b4fd
1 changed files with 1 additions and 5 deletions
|
@ -225,13 +225,9 @@ ppd_selection_dialog_response_cb (GtkDialog *dialog,
|
||||||
|
|
||||||
if (self->printer_name && ppd_name)
|
if (self->printer_name && ppd_name)
|
||||||
{
|
{
|
||||||
GCancellable *cancellable;
|
|
||||||
|
|
||||||
cancellable = g_cancellable_new ();
|
|
||||||
|
|
||||||
printer_set_ppd_async (self->printer_name,
|
printer_set_ppd_async (self->printer_name,
|
||||||
ppd_name,
|
ppd_name,
|
||||||
cancellable,
|
self->cancellable,
|
||||||
set_ppd_cb,
|
set_ppd_cb,
|
||||||
self);
|
self);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue