=?UTF-8?Q?Andr=C3=A9=20Hentschel=20?=: gdiplus: Fix order of GdipFrees ( coverity).
Alexandre Julliard
julliard at winehq.org
Thu Oct 25 13:50:44 CDT 2012
Module: wine
Branch: master
Commit: 31eef521e9dfbde80740b05606b2584a77b9d48a
URL: http://source.winehq.org/git/wine.git/?a=commit;h=31eef521e9dfbde80740b05606b2584a77b9d48a
Author: André Hentschel <nerv at dawncrow.de>
Date: Wed Oct 24 20:53:10 2012 +0200
gdiplus: Fix order of GdipFrees (coverity).
---
dlls/gdiplus/graphicspath.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
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;
}
More information about the wine-cvs
mailing list