Module: wine Branch: master Commit: 9c5c063ebf42a6c5d3798663a01534f6b5db7b30 URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=9c5c063ebf42a6c5d3798663...
Author: Mike McCormack mike@codeweavers.com Date: Mon Aug 14 21:02:28 2006 +0900
oleaut32: Put the HeapFree back in the right place.
---
dlls/oleaut32/olepicture.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/oleaut32/olepicture.c b/dlls/oleaut32/olepicture.c index 569fe15..85a9f08 100644 --- a/dlls/oleaut32/olepicture.c +++ b/dlls/oleaut32/olepicture.c @@ -1838,6 +1838,7 @@ static HRESULT WINAPI OLEPictureImpl_Sav hResult = E_FAIL; break; } + HeapFree(GetProcessHeap(), 0, This->data); This->data = pIconData; This->datalen = iDataSize; } @@ -1850,7 +1851,6 @@ static HRESULT WINAPI OLEPictureImpl_Sav } IStream_Write(pStm, This->data, This->datalen, &dummy);
- HeapFree(GetProcessHeap(), 0, This->data); hResult = S_OK; break; case PICTYPE_BITMAP: