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

This commit is contained in:
Eric Pouech 2006-10-22 21:48:52 +02:00 committed by Alexandre Julliard
parent 858bebc7c8
commit 5c0f35a2aa

View file

@ -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