summaryrefslogtreecommitdiff
path: root/girepository
diff options
context:
space:
mode:
authorJohan Dahlin <jdahlin@async.com.br>2009-01-26 17:56:48 +0000
committerJohan Dahlin <johan@src.gnome.org>2009-01-26 17:56:48 +0000
commit983cef93a97f2495c5c9a88927ec53ed22fd0fbf (patch)
tree93ef8986e1cb05d3047d3c2fe62c2b4d0164b618 /girepository
parentb1b7a327bca4558fa0cdaeb35600fc1236bdc24f (diff)
downloadgobject-introspection-983cef93a97f2495c5c9a88927ec53ed22fd0fbf.tar.gz
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
Diffstat (limited to 'girepository')
-rw-r--r--girepository/ginfo.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/girepository/ginfo.c b/girepository/ginfo.c
index 8324c05b..97aa5342 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);
}