urlmon/umon.c: Fix corruption
Uwe Bonnes
bon at elektron.ikp.physik.tu-darmstadt.de
Sun May 22 12:03:12 CDT 2005
Changelog:
dlls/urlmon/umon.c: URLMonikerImpl_Release()
Release structure elements before Freeing structure
--
Uwe Bonnes bon at elektron.ikp.physik.tu-darmstadt.de
Institut fuer Kernphysik Schlossgartenstrasse 9 64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------
Index: wine/dlls/urlmon/umon.c
===================================================================
RCS file: /home/wine/wine/dlls/urlmon/umon.c,v
retrieving revision 1.52
diff -u -r1.52 umon.c
--- wine/dlls/urlmon/umon.c 5 May 2005 09:50:46 -0000 1.52
+++ wine/dlls/urlmon/umon.c 22 May 2005 11:00:54 -0000
@@ -128,8 +128,6 @@
/* destroy the object if there's no more reference on it */
if (!refCount) {
- HeapFree(GetProcessHeap(),0,This->URLName);
- HeapFree(GetProcessHeap(),0,This);
if (This->hCacheFile)
CloseHandle(This->hCacheFile);
if (This->pstrCache)
@@ -139,6 +137,8 @@
}
if (This->pbscb)
IBindStatusCallback_Release(This->pbscb);
+ HeapFree(GetProcessHeap(),0,This->URLName);
+ HeapFree(GetProcessHeap(),0,This);
}
URLMON_UnlockModule();
More information about the wine-patches
mailing list