gobject-introspection r449 - in trunk: . tools



Author: walters
Date: Fri Aug 22 17:34:29 2008
New Revision: 449
URL: http://svn.gnome.org/viewvc/gobject-introspection?rev=449&view=rev

Log:
2008-08-22  Colin Walters  <walters verbum org>

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


Modified:
   trunk/ChangeLog
   trunk/tools/generate.c

Modified: trunk/tools/generate.c
==============================================================================
--- trunk/tools/generate.c	(original)
+++ trunk/tools/generate.c	Fri Aug 22 17:34:29 2008
@@ -266,7 +266,6 @@
 
   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 @@
 	      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 @@
     }
   
   g_fprintf (file, "%*s  </parameters>\n", indent, "");
+  g_base_info_unref ((GIBaseInfo *)type);
 }
 
 static void



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