mirror of
https://github.com/phpv8/v8js.git
synced 2025-02-02 16:40:00 +00:00
conditionally call DisposePlatform or ShutdownPlatform
This commit is contained in:
parent
23cc21c5b8
commit
32d8dd8dec
@ -162,7 +162,11 @@ static PHP_MSHUTDOWN_FUNCTION(v8js)
|
||||
|
||||
if(v8_initialized) {
|
||||
v8::V8::Dispose();
|
||||
#if PHP_V8_API_VERSION >= 10000000
|
||||
v8::V8::DisposePlatform();
|
||||
#else
|
||||
v8::V8::ShutdownPlatform();
|
||||
#endif
|
||||
// @fixme call virtual destructor somehow
|
||||
//delete v8js_process_globals.v8_platform;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user