[bijiben] item: Fix memory leak



commit 0c7061de9e2987de351c30dae28a5b749cd525fc
Author: Isaque Galdino <igaldino gmail com>
Date:   Mon Apr 16 17:51:02 2018 -0300

    item: Fix memory leak

 src/libbiji/biji-item.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/libbiji/biji-item.c b/src/libbiji/biji-item.c
index a96bfb2..ae8aa7e 100644
--- a/src/libbiji/biji-item.c
+++ b/src/libbiji/biji-item.c
@@ -151,7 +151,8 @@ biji_item_class_init (BijiItemClass *klass)
 static void
 biji_item_finalize (GObject *object)
 {
-  g_return_if_fail (BIJI_IS_ITEM (object));
+  BijiItemPrivate *priv = biji_item_get_instance_private (BIJI_ITEM (object));
+  g_clear_object (&priv->manager);
 
   G_OBJECT_CLASS (biji_item_parent_class)->finalize (object);
 }


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