Skip to content
Snippets Groups Projects
Commit 9c5c063e authored by Michael McCormack's avatar Michael McCormack Committed by Alexandre Julliard
Browse files

oleaut32: Put the HeapFree back in the right place.

parent c8572a5e
No related branches found
No related tags found
No related merge requests found
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment