Author: jimtabor
Date: Fri Aug 10 09:52:26 2007
New Revision: 28267
URL:
http://svn.reactos.org/svn/reactos?rev=28267&view=rev
Log:
Fix a problem in metafile deallocation.
Modified:
trunk/reactos/dll/win32/gdi32/objects/metafile.c
Modified: trunk/reactos/dll/win32/gdi32/objects/metafile.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/gdi32/objects/me…
==============================================================================
--- trunk/reactos/dll/win32/gdi32/objects/metafile.c (original)
+++ trunk/reactos/dll/win32/gdi32/objects/metafile.c Fri Aug 10 09:52:26 2007
@@ -66,6 +66,7 @@
RemoveEntryList(&pMFME->List);
LocalFree ( pMFME );
hMFCount--;
+ if (!hMFCount) hMF_List = NULL;
return TRUE;
}
pMFME = (PMF_ENTRY) pMFME->List.Flink;