[gnome-settings-daemon] print-notifications: Call stop from finalize
- From: Rui Matos <rtcm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] print-notifications: Call stop from finalize
- Date: Fri, 17 Oct 2014 15:27:51 +0000 (UTC)
commit 2eaaa396cc30e7535d58a6ca148f9928ecd5a24e
Author: Rui Matos <tiagomatos gmail com>
Date: Fri Oct 17 17:09:35 2014 +0200
print-notifications: Call stop from finalize
.../gsd-print-notifications-manager.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/plugins/print-notifications/gsd-print-notifications-manager.c
b/plugins/print-notifications/gsd-print-notifications-manager.c
index 120b503..34c4927 100644
--- a/plugins/print-notifications/gsd-print-notifications-manager.c
+++ b/plugins/print-notifications/gsd-print-notifications-manager.c
@@ -1382,8 +1382,7 @@ gsd_print_notifications_manager_stop (GsdPrintNotificationsManager *manager)
if (manager->priv->subscription_id >= 0)
cancel_subscription (manager->priv->subscription_id);
- if (manager->priv->printing_printers)
- g_hash_table_destroy (manager->priv->printing_printers);
+ g_clear_pointer (&manager->priv->printing_printers, g_hash_table_destroy);
g_clear_object (&manager->priv->cups_bus_connection);
@@ -1442,6 +1441,8 @@ gsd_print_notifications_manager_finalize (GObject *object)
g_return_if_fail (manager->priv != NULL);
+ gsd_print_notifications_manager_stop (manager);
+
if (manager->priv->start_idle_id != 0)
g_source_remove (manager->priv->start_idle_id);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]