Commit 5c0f35a2 authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

ole32: CoUninitialize: No longer access an object after it's been freed.

parent 858bebc7
......@@ -365,8 +365,8 @@ DWORD apartment_release(struct apartment *apt)
struct registered_psclsid *registered_psclsid =
LIST_ENTRY(cursor, struct registered_psclsid, entry);
HeapFree(GetProcessHeap(), 0, registered_psclsid);
list_remove(&registered_psclsid->entry);
HeapFree(GetProcessHeap(), 0, registered_psclsid);
}
/* if this assert fires, then another thread took a reference to a
......
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