From a0a60f2601d5f0cec5e12b8da4ddf00b1a2bc9b2 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 --- ginfo.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ginfo.c b/ginfo.c index 8324c05b0..97aa5342e 100644 --- a/ginfo.c +++ b/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); }