mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 20:59:54 +00:00
gdiplus: Fix a memory leak.
Found by Valgrind.
This commit is contained in:
parent
f75981c712
commit
68bacfb8d5
@ -4161,6 +4161,7 @@ GpStatus WINGDIPAPI GdipGetClip(GpGraphics *graphics, GpRegion *region)
|
||||
/* free everything except root node and header */
|
||||
delete_element(®ion->node);
|
||||
memcpy(region, clip, sizeof(GpRegion));
|
||||
GdipFree(clip);
|
||||
|
||||
return Ok;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user