[pygobject] Always unref the GiTypeInfo when generating an argument cache



commit 6391a8e4f03d4010c0d7de79fc83138fd69e0e33
Author: Mike Gorse <mgorse suse com>
Date:   Wed Jul 10 16:44:23 2013 -0500

    Always unref the GiTypeInfo when generating an argument cache
    
    We were leaking a GiTypeInfo when handling child arguments.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=703973

 gi/pygi-cache.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gi/pygi-cache.c b/gi/pygi-cache.c
index d149732..b01fe33 100644
--- a/gi/pygi-cache.c
+++ b/gi/pygi-cache.c
@@ -1387,6 +1387,7 @@ _args_cache_generate (GICallableInfo *callable_info,
 
             arg_cache->type_tag = g_type_info_get_tag (type_info);
 
+            g_base_info_unref (type_info);
             g_base_info_unref ( (GIBaseInfo *)arg_info);
             continue;
         }


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