summaryrefslogtreecommitdiff
path: root/panels/printers/cc-printers-panel.c
diff options
context:
space:
mode:
authorRobert Ancell <robert.ancell@canonical.com>2018-06-15 14:38:03 +1200
committerRobert Ancell <robert.ancell@gmail.com>2018-06-25 22:53:10 +0000
commit55d47bc83e5f346f71e246bfa51361e9bbf7f9ae (patch)
treeff54a7ffdccb75335629d9b4fbc72fab510c31b2 /panels/printers/cc-printers-panel.c
parent361e7654278b9505b0bdb8e0b34557f4a4d8fe19 (diff)
downloadgnome-control-center-55d47bc83e5f346f71e246bfa51361e9bbf7f9ae.tar.gz
printers: Plug memory leaks
Diffstat (limited to 'panels/printers/cc-printers-panel.c')
-rw-r--r--panels/printers/cc-printers-panel.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/panels/printers/cc-printers-panel.c b/panels/printers/cc-printers-panel.c
index 877028863..f05a3ec6d 100644
--- a/panels/printers/cc-printers-panel.c
+++ b/panels/printers/cc-printers-panel.c
@@ -934,6 +934,7 @@ actualize_printers_list_cb (GObject *source_object,
}
g_error_free (error);
+ g_object_unref (cups);
return;
}
@@ -984,6 +985,8 @@ actualize_printers_list_cb (GObject *source_object,
}
update_sensitivity (user_data);
+
+ g_object_unref (cups);
}
static void