Fix unref sequence.
authorColin Walters <walters@verbum.org>
Fri, 22 Aug 2008 17:34:29 +0000 (17:34 +0000)
committerColin Walters <walters@src.gnome.org>
Fri, 22 Aug 2008 17:34:29 +0000 (17:34 +0000)
2008-08-22  Colin Walters  <walters@verbum.org>

* tools/generate.c (write_callable_info): Fix unref
sequence.

svn path=/trunk/; revision=449

ChangeLog
tools/generate.c

index c9ea6c2..eec503b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2008-08-22  Colin Walters  <walters@verbum.org>
 
+       * tools/generate.c (write_callable_info): Fix unref
+       sequence.
+
+2008-08-22  Colin Walters  <walters@verbum.org>
+
        * gobject-introspection-1.0.pc.in: Add g-ir-generate.
        * tests/Makefile.am: Support $(DEBUG)
        * tools/generate.c: Do immediate close tags if no
index 1f33157..8ff90b9 100644 (file)
@@ -266,7 +266,6 @@ write_callable_info (const gchar    *namespace,
 
   g_fprintf (file, "%*s  <return-value>\n", indent, "");
   
-  g_base_info_unref ((GIBaseInfo *)type);
   if (g_callable_info_may_return_null (info))
     g_fprintf (file, " null-ok=\"1\"");
 
@@ -306,7 +305,6 @@ write_callable_info (const gchar    *namespace,
              g_assert_not_reached ();
            }
        }             
-      g_base_info_unref ((GIBaseInfo *)type);
       
       g_fprintf (file, " direction=\"");
       switch (g_arg_info_get_direction (arg))
@@ -350,6 +348,7 @@ write_callable_info (const gchar    *namespace,
     }
   
   g_fprintf (file, "%*s  </parameters>\n", indent, "");
+  g_base_info_unref ((GIBaseInfo *)type);
 }
 
 static void