Only unref the repository if it's actually set.

2009-01-26  Johan Dahlin  <jdahlin@async.com.br>

        * girepository/ginfo.c (g_base_info_unref):
        Only unref the repository if it's actually set.


svn path=/trunk/; revision=1068
This commit is contained in:
Johan Dahlin 2009-01-26 17:56:48 +00:00 committed by Johan Dahlin
parent 40e6b94790
commit a0a60f2601

View File

@ -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);
}