Commit fcc01c30 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

vbscript: Move detach_global_objects call to VBScript destructor.

parent d481efee
...@@ -188,7 +188,6 @@ static void release_script(script_ctx_t *ctx) ...@@ -188,7 +188,6 @@ static void release_script(script_ctx_t *ctx)
IDispatchEx_Release(&script_obj->IDispatchEx_iface); IDispatchEx_Release(&script_obj->IDispatchEx_iface);
} }
detach_global_objects(ctx);
heap_pool_free(&ctx->heap); heap_pool_free(&ctx->heap);
heap_pool_init(&ctx->heap); heap_pool_init(&ctx->heap);
} }
...@@ -395,6 +394,7 @@ static ULONG WINAPI VBScript_Release(IActiveScript *iface) ...@@ -395,6 +394,7 @@ static ULONG WINAPI VBScript_Release(IActiveScript *iface)
if(!ref) { if(!ref) {
decrease_state(This, SCRIPTSTATE_CLOSED); decrease_state(This, SCRIPTSTATE_CLOSED);
detach_global_objects(This->ctx);
heap_free(This->ctx); heap_free(This->ctx);
heap_free(This); heap_free(This);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment