[gjs] value: Fix memory leak



commit ee011c16d3cda18ad40d0d7ab7653f8979b0053c
Author: Florian Müllner <fmuellner gnome org>
Date:   Wed Nov 27 22:30:46 2013 +0100

    value: Fix memory leak
    
    The unref() was dropped accidentally in commit 493270b07ad0, put it
    back.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=719449

 gi/value.cpp |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gi/value.cpp b/gi/value.cpp
index 0efc4aa..01cf023 100644
--- a/gi/value.cpp
+++ b/gi/value.cpp
@@ -618,6 +618,7 @@ convert_int_to_enum (JSContext *context,
         g_assert (info);
 
         v_double = _gjs_enum_from_int ((GIEnumInfo *)info, v);
+        g_base_info_unref(info);
     }
 
     return JS_NewNumberValue(context, v_double, value_p);


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