Plug a leak in g_callable_info_get_ffi_return_type
authorMaxim Ermilov <zaspire@rambler.ru>
Wed, 2 Dec 2009 12:18:24 +0000 (10:18 -0200)
committerJohan Dahlin <johan@gnome.org>
Wed, 2 Dec 2009 12:19:45 +0000 (10:19 -0200)
https://bugzilla.gnome.org/show_bug.cgi?id=603526

girepository/girffi.c

index b6c35c7..b06399c 100644 (file)
@@ -271,6 +271,9 @@ g_callable_info_get_ffi_return_type (GICallableInfo *callable_info)
 
   return_type = g_callable_info_get_return_type (callable_info);
   type_tag = g_type_info_get_tag (return_type);
+
+  g_base_info_unref((GIBaseInfo*)return_type);
+
   return g_ir_ffi_get_ffi_type (type_tag);
 }