[PATCH 15/16] [Ole32]: CoUninitialize
Eric Pouech
eric.pouech at wanadoo.fr
Sun Oct 22 14:48:52 CDT 2006
- no longer access an object after it's been freed
(spotted by valgrind)
A+
---
dlls/ole32/compobj.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/ole32/compobj.c b/dlls/ole32/compobj.c
index 1887cf6..db76dbc 100644
--- a/dlls/ole32/compobj.c
+++ b/dlls/ole32/compobj.c
@@ -365,8 +365,8 @@ DWORD apartment_release(struct apartment
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
More information about the wine-patches
mailing list