Commit 68bacfb8 authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

gdiplus: Fix a memory leak.

Found by Valgrind.
parent f75981c7
......@@ -4161,6 +4161,7 @@ GpStatus WINGDIPAPI GdipGetClip(GpGraphics *graphics, GpRegion *region)
/* free everything except root node and header */
delete_element(&region->node);
memcpy(region, clip, sizeof(GpRegion));
GdipFree(clip);
return Ok;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment