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:
parent
f7f591fc9e
commit
18571c17cf
1 changed files with 5 additions and 2 deletions
7
v8.cpp
7
v8.cpp
|
@ -4,8 +4,11 @@
|
||||||
|
|
||||||
typedef struct v8_context {
|
typedef struct v8_context {
|
||||||
v8_context() : context(v8::Context::New()) {}
|
v8_context() : context(v8::Context::New()) {}
|
||||||
//declare this as Local<v8::Context> ???
|
~v8_context() {
|
||||||
v8::Handle<v8::Context> context;
|
context.Dispose();
|
||||||
|
printf("disposing of context\n");
|
||||||
|
}
|
||||||
|
v8::Persistent<v8::Context> context;
|
||||||
} v8_context;
|
} v8_context;
|
||||||
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
|
Loading…
Add table
Reference in a new issue