[gobject-introspection] Plug a leak in g_callable_info_get_ffi_return_type



commit 8ebaa58148917ce2b89b68f00aefbdca3eac87fd
Author: Maxim Ermilov <zaspire rambler ru>
Date:   Wed Dec 2 10:18:24 2009 -0200

    Plug a leak in g_callable_info_get_ffi_return_type
    
    https://bugzilla.gnome.org/show_bug.cgi?id=603526

 girepository/girffi.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/girepository/girffi.c b/girepository/girffi.c
index b6c35c7..b06399c 100644
--- a/girepository/girffi.c
+++ b/girepository/girffi.c
@@ -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);
 }
 



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