[gjs] arg: Fix mem leak



commit 70ada174e019f1dd21699b8731fa30938f2a0b63
Author: Pavel Vasin <rat4vier gmail com>
Date:   Wed Nov 28 21:58:48 2012 +0400

    arg: Fix mem leak
    
    https://bugzilla.gnome.org/show_bug.cgi?id=689284

 gi/arg.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gi/arg.c b/gi/arg.c
index ef8ca54..62e5db3 100644
--- a/gi/arg.c
+++ b/gi/arg.c
@@ -1616,6 +1616,7 @@ gjs_value_to_g_argument(JSContext      *context,
 
         param_info = g_type_info_get_param_type(type_info, 0);
         element_type = g_type_info_get_tag(param_info);
+        g_base_info_unref(param_info);
 
         /* First, let's handle the case where we're passed an instance
          * of our own byteArray class.



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