[gnome-settings-daemon] media-keys: Don't leak the logind proxy



commit f86f902ad9dbc2a6617e80c78b119564c4adb17e
Author: Rui Matos <tiagomatos gmail com>
Date:   Fri Oct 3 18:09:45 2014 +0200

    media-keys: Don't leak the logind proxy
    
    https://bugzilla.gnome.org/show_bug.cgi?id=737798

 plugins/media-keys/gsd-media-keys-manager.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/plugins/media-keys/gsd-media-keys-manager.c b/plugins/media-keys/gsd-media-keys-manager.c
index 1da5e7c..e43e65d 100644
--- a/plugins/media-keys/gsd-media-keys-manager.c
+++ b/plugins/media-keys/gsd-media-keys-manager.c
@@ -2601,6 +2601,7 @@ gsd_media_keys_manager_finalize (GObject *object)
         if (media_keys_manager->priv->inhibit_keys_fd != -1)
                 close (media_keys_manager->priv->inhibit_keys_fd);
 
+        g_clear_object (&media_keys_manager->priv->logind_proxy);
         g_clear_object (&media_keys_manager->priv->screen_saver_proxy);
 
         G_OBJECT_CLASS (gsd_media_keys_manager_parent_class)->finalize (object);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]