Palete/Javascript.vala
authorAlan Knowles <alan@roojs.com>
Wed, 17 Sep 2014 11:02:27 +0000 (19:02 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 17 Sep 2014 11:02:27 +0000 (19:02 +0800)
Palete/Javascript.vala

index 5e9b0e7..37950b5 100644 (file)
@@ -67,7 +67,7 @@ namespace Palete {
                public bool validate(string code, out string res)
                {
                        JSCore.Value ex;
-                       var ctx = this.js_global_context.copy();
+                       var unowned ctx = this.js_global_context;
                        var ret = this.js_global_context.check_script_syntax(
                                   new JSCore.String.with_utf8_c_string(code),
                                   null,