0
0
mirror of https://github.com/phpv8/v8js.git synced 2024-12-22 19:51:51 +00:00

Dispose isolate when freeing V8Js object.

This commit is contained in:
Taneli Leppa 2014-07-01 09:20:45 +03:00
parent 1d8ae1f458
commit 03728d8bbd

View File

@ -643,6 +643,9 @@ static void php_v8js_free_storage(void *object TSRMLS_DC) /* {{{ */
}
c->weak_closures.~map();
v8::Isolate *isolate = c->isolate;
isolate->Dispose();
if(c->tz != NULL) {
free(c->tz);
}