1
0
Fork 0
mirror of https://github.com/rubyjs/therubyracer synced 2023-03-27 23:21:42 -04:00

call persistent handle dispose when context goes away

This commit is contained in:
Charles Lowell 2009-10-08 22:56:08 -05:00
parent f7f591fc9e
commit 18571c17cf

7
v8.cpp
View file

@ -4,8 +4,11 @@
typedef struct v8_context {
v8_context() : context(v8::Context::New()) {}
//declare this as Local<v8::Context> ???
v8::Handle<v8::Context> context;
~v8_context() {
context.Dispose();
printf("disposing of context\n");
}
v8::Persistent<v8::Context> context;
} v8_context;
extern "C" {