[pygobject] Plug tiny leak in constant_info_get_value



commit ddb0bf01e694585d58af52673a21796e7c9578ea
Author: Paolo Borelli <pborelli gnome org>
Date:   Sat Apr 21 12:02:54 2012 +0200

    Plug tiny leak in constant_info_get_value
    
    Fixes https://bugzilla.gnome.org/show_bug.cgi?id=642754

 gi/pygi-info.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gi/pygi-info.c b/gi/pygi-info.c
index d3adacc..d850052 100644
--- a/gi/pygi-info.c
+++ b/gi/pygi-info.c
@@ -1114,6 +1114,7 @@ _wrap_g_constant_info_get_value (PyGIBaseInfo *self)
 
     py_value = _pygi_argument_to_object (&value, type_info, GI_TRANSFER_NOTHING);
 
+    g_constant_info_free_value (self->info, &value);
     g_base_info_unref ( (GIBaseInfo *) type_info);
 
     return py_value;



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