gdiplus: Use helper function for remaining HeapFree calls.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de> Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru> Signed-off-by: Vincent Povirk <vincent@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
1250af4986
commit
ffa467691d
|
@ -1590,7 +1590,7 @@ void free_installed_fonts(void)
|
|||
{
|
||||
while (installedFontCollection.count)
|
||||
GdipDeleteFontFamily(installedFontCollection.FontFamilies[--installedFontCollection.count]);
|
||||
HeapFree(GetProcessHeap(), 0, installedFontCollection.FontFamilies);
|
||||
heap_free(installedFontCollection.FontFamilies);
|
||||
installedFontCollection.FontFamilies = NULL;
|
||||
installedFontCollection.allocated = 0;
|
||||
}
|
||||
|
@ -1618,7 +1618,7 @@ static INT CALLBACK add_font_proc(const LOGFONTW *lfw, const TEXTMETRICW *ntm,
|
|||
return 0;
|
||||
|
||||
memcpy(new_family_list, fonts->FontFamilies, fonts->count*sizeof(void*));
|
||||
HeapFree(GetProcessHeap(), 0, fonts->FontFamilies);
|
||||
heap_free(fonts->FontFamilies);
|
||||
fonts->FontFamilies = new_family_list;
|
||||
fonts->allocated = new_alloc_count;
|
||||
}
|
||||
|
|
|
@ -1716,7 +1716,7 @@ GpStatus WINGDIPAPI GdipCreateBitmapFromHICON(HICON hicon, GpBitmap** bitmap)
|
|||
dst_row += lockeddata.Stride;
|
||||
}
|
||||
|
||||
HeapFree(GetProcessHeap(), 0, bits);
|
||||
heap_free(bits);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -2884,7 +2884,7 @@ GpStatus WINGDIPAPI GdipGetAllPropertyItems(GpImage *image, UINT size,
|
|||
memcpy(item_value, item->value, item_size);
|
||||
item_value += item_size;
|
||||
|
||||
HeapFree(GetProcessHeap(), 0, item);
|
||||
heap_free(item);
|
||||
}
|
||||
|
||||
PropVariantClear(&id);
|
||||
|
|
Loading…
Reference in New Issue