[gjs] dbus-exports: Fix memory leak



commit eec566534bb5bf6db5ef04cd7d0f70b66765e415
Author: Pavel Vasin <rat4vier gmail com>
Date:   Wed Nov 28 21:32:25 2012 +0400

    dbus-exports: Fix memory leak
    
    https://bugzilla.gnome.org/show_bug.cgi?id=689284

 modules/dbus-exports.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/modules/dbus-exports.c b/modules/dbus-exports.c
index 1ad8c79..d707a34 100644
--- a/modules/dbus-exports.c
+++ b/modules/dbus-exports.c
@@ -645,9 +645,7 @@ invoke_js_async_from_dbus(JSContext   *context,
                       "conversion of dbus method arg failed but no exception was set?");
     }
 
-    if (argv) {
-        gjs_unroot_value_locations(context, argv, argc);
-    }
+    gjs_rooted_array_free(context, values, TRUE);
 
     return reply;
 }



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