OLE32: fix a memory leak in the ole storage implementation

Mike McCormack mike at codeweavers.com
Tue May 10 09:31:35 CDT 2005


ChangeLog:
* fix a memory leak in the ole storage implementation
-------------- next part --------------
Index: dlls/ole32/storage32.c
===================================================================
RCS file: /home/wine/wine/dlls/ole32/storage32.c,v
retrieving revision 1.84
diff -u -p -r1.84 storage32.c
--- dlls/ole32/storage32.c	6 May 2005 14:32:30 -0000	1.84
+++ dlls/ole32/storage32.c	10 May 2005 14:32:23 -0000
@@ -2379,7 +2379,7 @@ void StorageImpl_Destroy(StorageBaseImpl
   BlockChainStream_Destroy(This->smallBlockDepotChain);
 
   BIGBLOCKFILE_Destructor(This->bigBlockFile);
-  return;
+  HeapFree(GetProcessHeap(), 0, This);
 }
 
 /******************************************************************************


More information about the wine-patches mailing list