gdiplus: Fix order of GdipFrees (coverity)
André Hentschel
nerv at dawncrow.de
Wed Oct 24 13:53:10 CDT 2012
CID 714026
---
dlls/gdiplus/graphicspath.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/gdiplus/graphicspath.c b/dlls/gdiplus/graphicspath.c
index 47a864b..ca96bda 100644
--- a/dlls/gdiplus/graphicspath.c
+++ b/dlls/gdiplus/graphicspath.c
@@ -1067,9 +1067,9 @@ GpStatus WINGDIPAPI GdipClonePath(GpPath* path, GpPath **clone)
(*clone)->pathdata.Points = GdipAlloc(path->datalen * sizeof(PointF));
(*clone)->pathdata.Types = GdipAlloc(path->datalen);
if(!(*clone)->pathdata.Points || !(*clone)->pathdata.Types){
- GdipFree(*clone);
GdipFree((*clone)->pathdata.Points);
GdipFree((*clone)->pathdata.Types);
+ GdipFree(*clone);
return OutOfMemory;
}
--
1.8.0
--
Best Regards, André Hentschel
More information about the wine-patches
mailing list