gdiplus: Use GdipFree instead of HeapFree to free memory allocated with GdipAlloc.
This commit is contained in:
parent
4bca12c0db
commit
dd545c3e37
|
@ -1297,7 +1297,7 @@ static GpStatus transform_region_element(region_element* element, GpMatrix *matr
|
||||||
{
|
{
|
||||||
/* Steal the element from the created region. */
|
/* Steal the element from the created region. */
|
||||||
memcpy(element, &new_region->node, sizeof(region_element));
|
memcpy(element, &new_region->node, sizeof(region_element));
|
||||||
HeapFree(GetProcessHeap(), 0, new_region);
|
GdipFree(new_region);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
return stat;
|
return stat;
|
||||||
|
|
Loading…
Reference in New Issue