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

jscript: Release named items in IActiveScript::Close.

parent 0c6b804e
......@@ -305,6 +305,21 @@ static HRESULT WINAPI JScript_Close(IActiveScript *iface)
clear_script_queue(This);
if(This->ctx->named_items) {
named_item_t *iter, *iter2;
iter = This->ctx->named_items;
while(iter) {
iter2 = iter->next;
IDispatch_Release(iter->disp);
heap_free(iter);
iter = iter2;
}
This->ctx->named_items = NULL;
}
if(This->ctx) {
change_state(This, SCRIPTSTATE_CLOSED);
......
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