mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-14 23:47:16 +00:00
gdiplus: Fix a couple of memory leaks.
Found by Valgrind.
This commit is contained in:
parent
497b67dbf6
commit
55bf97bba7
|
@ -249,6 +249,7 @@ GpStatus WINGDIPAPI GdipCombineRegionPath(GpRegion *region, GpPath *path, Combin
|
|||
if(mode == CombineModeReplace){
|
||||
delete_element(®ion->node);
|
||||
memcpy(region, path_region, sizeof(GpRegion));
|
||||
GdipFree(path_region);
|
||||
return Ok;
|
||||
}
|
||||
|
||||
|
@ -295,6 +296,7 @@ GpStatus WINGDIPAPI GdipCombineRegionRect(GpRegion *region,
|
|||
if(mode == CombineModeReplace){
|
||||
delete_element(®ion->node);
|
||||
memcpy(region, rect_region, sizeof(GpRegion));
|
||||
GdipFree(rect_region);
|
||||
return Ok;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue