From 5c0f35a2aa4c09736aa1a6c920c513bc1282c446 Mon Sep 17 00:00:00 2001 From: Eric Pouech Date: Sun, 22 Oct 2006 21:48:52 +0200 Subject: [PATCH] ole32: CoUninitialize: No longer access an object after it's been freed. --- dlls/ole32/compobj.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/ole32/compobj.c b/dlls/ole32/compobj.c index 1887cf66e36..db76dbcebb5 100644 --- a/dlls/ole32/compobj.c +++ b/dlls/ole32/compobj.c @@ -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(®istered_psclsid->entry); + HeapFree(GetProcessHeap(), 0, registered_psclsid); } /* if this assert fires, then another thread took a reference to a