[pygobject] Set clean-up handler for marshalled arrays



commit 5ae129da436793478750f0dc9427a174a980e10b
Author: Mike Gorse <mgorse suse com>
Date:   Thu Jan 10 16:42:17 2013 -0600

    Set clean-up handler for marshalled arrays
    
    Arrays did not have a cleanup handler set in some cases, resulting in a leak.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=691509

 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 2a44c02..0848ccf 100644
--- a/gi/pygi-cache.c
+++ b/gi/pygi-cache.c
@@ -480,6 +480,7 @@ _arg_cache_from_py_array_setup (PyGIArgCache *arg_cache,
             child_cache = _arg_cache_alloc ();
         } else if (child_cache->meta_type == PYGI_META_ARG_TYPE_CHILD ||
                    child_cache->meta_type == PYGI_META_ARG_TYPE_CHILD_NEEDS_UPDATE) {
+            arg_cache->from_py_cleanup = _pygi_marshal_cleanup_from_py_array;
             return TRUE;
         }
 



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