Commit 4b3cee0c authored by Gabriel Ivăncescu's avatar Gabriel Ivăncescu Committed by Alexandre Julliard

mshtml: Fix window leak on error in async_stop_request.

parent 137a3652
......@@ -1415,16 +1415,16 @@ static HRESULT async_stop_request(nsChannelBSC *This)
stop_request_task_t *task;
HRESULT hres;
task = malloc(sizeof(*task));
if(!task)
return E_OUTOFMEMORY;
IHTMLWindow2_AddRef(&window->base.IHTMLWindow2_iface);
if(!This->bsc.read) {
TRACE("No data read, calling OnStartRequest\n");
on_start_nsrequest(This);
}
task = malloc(sizeof(*task));
if(!task)
return E_OUTOFMEMORY;
IBindStatusCallback_AddRef(&This->bsc.IBindStatusCallback_iface);
task->bsc = 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