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

shdocvw: Abort pending tasks on DocHost destruction.

parent 826f7c0c
......@@ -62,6 +62,16 @@ LRESULT process_dochost_tasks(DocHost *This)
return 0;
}
static void abort_dochost_tasks(DocHost *This)
{
task_header_t *task, *cursor;
LIST_FOR_EACH_ENTRY_SAFE(task, cursor, &This->task_queue, task_header_t, entry) {
list_remove(&task->entry);
task->destr(task);
}
}
static void notif_complete(DocHost *This, DISPID dispid)
{
DISPPARAMS dispparams;
......@@ -876,6 +886,7 @@ void DocHost_Init(DocHost *This, IDispatch *disp, const IDocHostContainerVtbl* c
void DocHost_Release(DocHost *This)
{
abort_dochost_tasks(This);
release_dochost_client(This);
DocHost_ClientSite_Release(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