gdiplus: Fix a memory leak.

Found by Valgrind.
This commit is contained in:
Huw Davies 2009-12-12 16:49:15 +00:00 committed by Alexandre Julliard
parent f75981c712
commit 68bacfb8d5
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}