[gnome-shell] tests: Destroy GjsContext before exit



commit dc110db4e0dc4f3bbe75e38149f2d6c2ef46966f
Author: Philip Chimento <philip endlessm com>
Date:   Fri Dec 9 18:50:39 2016 -0800

    tests: Destroy GjsContext before exit
    
    This will be required in the upcoming version of GJS.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=775374

 src/run-js-test.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/run-js-test.c b/src/run-js-test.c
index bd76d95..5fb077c 100644
--- a/src/run-js-test.c
+++ b/src/run-js-test.c
@@ -127,6 +127,7 @@ main(int argc, char **argv)
   gjs_context_gc (js_context);
   gjs_context_gc (js_context);
 
+  g_object_unref (js_context);
   g_free (script);
   exit (code);
 }


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