[gnome-photos] main-toolbar: Plug a memory leak



commit d3ac8f0ba79cfc3b305c8f107d37766cfb0ac905
Author: Debarshi Ray <debarshir gnome org>
Date:   Thu Jan 2 17:09:40 2014 +0100

    main-toolbar: Plug a memory leak

 src/photos-main-toolbar.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/photos-main-toolbar.c b/src/photos-main-toolbar.c
index ef1f39c..c0c86a8 100644
--- a/src/photos-main-toolbar.c
+++ b/src/photos-main-toolbar.c
@@ -471,6 +471,7 @@ photos_main_toolbar_populate_for_preview (PhotosMainToolbar *self)
   remote_display_action = g_action_map_lookup_action (G_ACTION_MAP (app), "remote-display-current");
   remote_display_available = photos_dlna_renderers_manager_is_available ();
   g_simple_action_set_enabled (G_SIMPLE_ACTION (remote_display_action), remote_display_available);
+  g_object_unref (app);
 
   g_signal_connect (priv->item_mngr, "active-changed", G_CALLBACK (photos_main_toolbar_item_active_changed), 
self);
 }


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