[gnome-photos/wip/baedert/gtkimageview: 4/5] base-model: Plug memory leak



commit 12cd87592a1a7791a0519e06854b09f297eb87f1
Author: Timm Bäder <mail baedert org>
Date:   Sat Apr 16 14:20:15 2016 +0200

    base-model: Plug memory leak

 src/photos-base-model.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/photos-base-model.c b/src/photos-base-model.c
index 5b9a87f..8517a1f 100644
--- a/src/photos-base-model.c
+++ b/src/photos-base-model.c
@@ -116,6 +116,7 @@ photos_base_model_refresh (PhotosBaseModel *self)
       g_menu_append_item (section, menu_item);
 
       g_free (name);
+      g_object_unref (menu_item);
     }
 
   g_object_unref (section);


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