oleaut32: Put the HeapFree back in the right place.

This commit is contained in:
Mike McCormack 2006-08-14 21:02:28 +09:00 committed by Alexandre Julliard
parent c8572a5e43
commit 9c5c063ebf
1 changed files with 1 additions and 1 deletions

View File

@ -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: