gdiplus: Fixed memory leak in GdipDeletePath.
This commit is contained in:
parent
78510e70e7
commit
e9eceb5f31
|
@ -172,6 +172,8 @@ GpStatus WINGDIPAPI GdipDeletePath(GpPath *path)
|
||||||
if(!path)
|
if(!path)
|
||||||
return InvalidParameter;
|
return InvalidParameter;
|
||||||
|
|
||||||
|
GdipFree(path->pathdata.Points);
|
||||||
|
GdipFree(path->pathdata.Types);
|
||||||
GdipFree(path);
|
GdipFree(path);
|
||||||
|
|
||||||
return Ok;
|
return Ok;
|
||||||
|
|
Loading…
Reference in New Issue