Bugfix: treat persistent V8 references correctly.

V8 is somewhat inconvenient regarding invoke of destructors for C++ proxies.
This commit is contained in:
Oliver Buchtala 2013-01-30 18:50:03 +01:00
commit d3aa8e06fb
2 changed files with 15 additions and 5 deletions

View file

@ -118,6 +118,9 @@ void $jswrapper(v8::Persistent< v8::Value > object, void *parameter) {
$jsfree proxy->swigCObject;
}
delete proxy;
object.Clear();
object.Dispose();
}
%}