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

mshtml: Use task destructor for start_request task.

parent 3be3074f
......@@ -1224,7 +1224,14 @@ static void stop_request_proc(task_t *_task)
list_remove(&task->bsc->bsc.entry);
list_init(&task->bsc->bsc.entry);
on_stop_nsrequest(task->bsc, S_OK);
}
static void stop_request_task_destr(task_t *_task)
{
stop_request_task_t *task = (stop_request_task_t*)_task;
IBindStatusCallback_Release(&task->bsc->bsc.IBindStatusCallback_iface);
heap_free(task);
}
static HRESULT async_stop_request(nsChannelBSC *This)
......@@ -1242,7 +1249,7 @@ static HRESULT async_stop_request(nsChannelBSC *This)
IBindStatusCallback_AddRef(&This->bsc.IBindStatusCallback_iface);
task->bsc = This;
push_task(&task->header, stop_request_proc, NULL, This->bsc.doc->basedoc.doc_obj->basedoc.task_magic);
push_task(&task->header, stop_request_proc, stop_request_task_destr, This->bsc.doc->basedoc.doc_obj->basedoc.task_magic);
return S_OK;
}
......
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