From 9c5c063ebf42a6c5d3798663a01534f6b5db7b30 Mon Sep 17 00:00:00 2001 From: Mike McCormack Date: Mon, 14 Aug 2006 21:02:28 +0900 Subject: [PATCH] oleaut32: Put the HeapFree back in the right place. --- dlls/oleaut32/olepicture.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/oleaut32/olepicture.c b/dlls/oleaut32/olepicture.c index 569fe1545e8..85a9f081938 100644 --- a/dlls/oleaut32/olepicture.c +++ b/dlls/oleaut32/olepicture.c @@ -1838,6 +1838,7 @@ static HRESULT WINAPI OLEPictureImpl_Save( hResult = E_FAIL; break; } + HeapFree(GetProcessHeap(), 0, This->data); This->data = pIconData; This->datalen = iDataSize; } @@ -1850,7 +1851,6 @@ static HRESULT WINAPI OLEPictureImpl_Save( } IStream_Write(pStm, This->data, This->datalen, &dummy); - HeapFree(GetProcessHeap(), 0, This->data); hResult = S_OK; break; case PICTYPE_BITMAP: