mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Explicitly call destructor instead of delete (follow-up for 521859, r=dvander).
This commit is contained in:
parent
349ddddea8
commit
09041f31f7
@ -892,7 +892,9 @@ JS_CommenceRuntimeShutDown(JSRuntime *rt)
|
||||
JS_PUBLIC_API(void)
|
||||
JS_DestroyRuntime(JSRuntime *rt)
|
||||
{
|
||||
delete rt;
|
||||
rt->~JSRuntime();
|
||||
|
||||
js_free(rt);
|
||||
}
|
||||
|
||||
JS_PUBLIC_API(void)
|
||||
|
Loading…
Reference in New Issue
Block a user