From e1cd6689507199b2f88342af021b23f1842844f0 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Fri, 22 Aug 2008 17:34:29 +0000 Subject: [PATCH] Fix unref sequence. 2008-08-22 Colin Walters * tools/generate.c (write_callable_info): Fix unref sequence. svn path=/trunk/; revision=449 --- girepository/tools/generate.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/girepository/tools/generate.c b/girepository/tools/generate.c index 1f331570a..8ff90b9bc 100644 --- a/girepository/tools/generate.c +++ b/girepository/tools/generate.c @@ -266,7 +266,6 @@ write_callable_info (const gchar *namespace, g_fprintf (file, "%*s \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 \n", indent, ""); + g_base_info_unref ((GIBaseInfo *)type); } static void