From 983cef93a97f2495c5c9a88927ec53ed22fd0fbf Mon Sep 17 00:00:00 2001 From: Johan Dahlin Date: Mon, 26 Jan 2009 17:56:48 +0000 Subject: [PATCH] Only unref the repository if it's actually set. 2009-01-26 Johan Dahlin * girepository/ginfo.c (g_base_info_unref): Only unref the repository if it's actually set. svn path=/trunk/; revision=1068 --- ChangeLog | 5 +++++ girepository/ginfo.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index d2f2dbd..75fe411 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2009-01-26 Johan Dahlin + + * girepository/ginfo.c (g_base_info_unref): + Only unref the repository if it's actually set. + 2009-01-23 Johan Dahlin * tests/everything/everything.c (test_enum_param): diff --git a/girepository/ginfo.c b/girepository/ginfo.c index 8324c05..97aa534 100644 --- a/girepository/ginfo.c +++ b/girepository/ginfo.c @@ -227,7 +227,8 @@ g_base_info_unref (GIBaseInfo *info) if (info->container) g_base_info_unref (info->container); - g_object_unref (info->repository); + if (info->repository) + g_object_unref (info->repository); g_free (info); } -- 2.7.4