From dc110db4e0dc4f3bbe75e38149f2d6c2ef46966f Mon Sep 17 00:00:00 2001 From: Philip Chimento Date: Fri, 9 Dec 2016 18:50:39 -0800 Subject: [PATCH] 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 file changed, 1 insertion(+) diff --git a/src/run-js-test.c b/src/run-js-test.c index bd76d9568..5fb077c2d 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); }