0
0
mirror of https://github.com/phpv8/v8js.git synced 2025-03-11 22:18:44 +00:00

Don't only run dtor, really delete the object

This commit is contained in:
Stefan Siegl 2015-08-02 21:26:18 +02:00
parent 981f502303
commit 1f56c8e43c

View File

@ -775,7 +775,7 @@ static void v8js_script_free(v8js_script *res, bool dispose_persistent)
res->name = NULL;
}
if (dispose_persistent) {
res->script->~Persistent(); // does Reset()
delete res->script; // does Reset()
res->script = NULL;
}
}