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 9b74180228ad09fbbc23a02a59a6cf7f37d8ed11..56d7ecd9547a8e9c3e343a6ef5368a6c0f540da4 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);