Fix a segfault
authorMatthias Clasen <matthiasc@src.gnome.org>
Tue, 24 May 2005 20:45:26 +0000 (20:45 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Tue, 24 May 2005 20:45:26 +0000 (20:45 +0000)
src/generate.c

index 9b74180..56d7ecd 100644 (file)
@@ -752,8 +752,8 @@ write_object_info (const gchar  *namespace,
       g_fprintf (file, " parent=\"");
       write_type_name (namespace, (GIBaseInfo *)pnode, file);
       g_fprintf (file, "\""  );
+      g_base_info_unref ((GIBaseInfo *)pnode);
     }
-  g_base_info_unref ((GIBaseInfo *)pnode);
 
   g_fprintf (file, " type-name=\"%s\" get-type=\"%s\"", type_name, type_init);