Commit 9c5c063e authored by Mike McCormack's avatar Mike McCormack Committed by Alexandre Julliard

oleaut32: Put the HeapFree back in the right place.

parent c8572a5e
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment