[pygobject] Fix invalid unref after getting callable container



commit 0d2e797812ab4e1a745ef97559104691dbb6b824
Author: Simon Feltman <sfeltman src gnome org>
Date:   Thu Aug 14 18:33:06 2014 -0700

    Fix invalid unref after getting callable container
    
    Don't unref the results of g_base_info_get_container() because it is
    transfer-none. This was causing an attempted unref on an invalid object
    when setting up callback caches for signals.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=727004

 gi/pygi-cache.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/gi/pygi-cache.c b/gi/pygi-cache.c
index 4727570..a572929 100644
--- a/gi/pygi-cache.c
+++ b/gi/pygi-cache.c
@@ -914,8 +914,6 @@ _function_with_instance_cache_generate_args_cache_real (PyGICallableCache *calla
                                       PYGI_DIRECTION_FROM_PYTHON,
                                       callable_cache);
 
-    g_base_info_unref ((GIBaseInfo *) interface_info);
-
     if (instance_cache == NULL)
         return FALSE;
 


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