gobject-introspection r1068 - in trunk: . girepository



Author: johan
Date: Mon Jan 26 17:56:48 2009
New Revision: 1068
URL: http://svn.gnome.org/viewvc/gobject-introspection?rev=1068&view=rev

Log:
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.



Modified:
   trunk/ChangeLog
   trunk/girepository/ginfo.c

Modified: trunk/girepository/ginfo.c
==============================================================================
--- trunk/girepository/ginfo.c	(original)
+++ trunk/girepository/ginfo.c	Mon Jan 26 17:56:48 2009
@@ -227,7 +227,8 @@
       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);
     }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]