src/vapi/javascriptcore.vapi
authorAlan Knowles <alan@roojs.com>
Wed, 18 Mar 2015 10:46:21 +0000 (18:46 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 18 Mar 2015 10:46:21 +0000 (18:46 +0800)
tests/JsCoreExecTest.vala.c
tests/Javascript.vala.c

src/vapi/javascriptcore.vapi

index ae9097a..3f0a5b5 100644 (file)
@@ -277,7 +277,7 @@ namespace JSCore {
 
   [Compact]
   /* FIXME: free_function causes a warning */
-  [CCode (cname = "void", free_function = "JSValueRelease")]
+  [CCode (cname = "void", free_function = "dummy_free")]
   public class Value {
     [CCode (cname = "JSValueMakeUndefined")]
     public Value.undefined (Context ctx);
@@ -345,6 +345,9 @@ namespace JSCore {
 
     [CCode (cname = "JSValueUnprotect", instance_pos=1.1)]
     public void unprotect (Context ctx);
+    
+    public void dummy_free () {
+       }
   }