[bijiben] item: Fix memory leak
- From: Isaque Galdino de Araujo <igaldino src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [bijiben] item: Fix memory leak
- Date: Mon, 16 Apr 2018 20:52:09 +0000 (UTC)
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]