printers: Fix PpPrinter reference leaks
They were not unreferenced in the callback.
This commit is contained in:
parent
7c1f84b4d3
commit
e6a05e535e
2 changed files with 2 additions and 2 deletions
|
@ -389,7 +389,7 @@ update_jobs_list_cb (GObject *source_object,
|
|||
static void
|
||||
update_jobs_list (PpJobsDialog *self)
|
||||
{
|
||||
PpPrinter *printer;
|
||||
g_autoptr(PpPrinter) printer = NULL;
|
||||
|
||||
if (self->printer_name != NULL)
|
||||
{
|
||||
|
|
|
@ -440,7 +440,7 @@ on_show_printer_details_dialog (GtkButton *button,
|
|||
new_name = pp_details_dialog_get_printer_name (dialog);
|
||||
if (g_strcmp0 (self->printer_name, new_name) != 0)
|
||||
{
|
||||
PpPrinter *printer = pp_printer_new (self->printer_name);
|
||||
g_autoptr(PpPrinter) printer = pp_printer_new (self->printer_name);
|
||||
|
||||
pp_printer_rename_async (printer,
|
||||
new_name,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue