Explicitly call destructor instead of delete (follow-up for 521859, r=dvander).

This commit is contained in:
Andreas Gal 2009-10-20 20:11:32 -07:00
parent 349ddddea8
commit 09041f31f7

View File

@ -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)