André Hentschel : gdiplus: Fix order of GdipFrees ( coverity).
Module: wine Branch: master Commit: 31eef521e9dfbde80740b05606b2584a77b9d48a URL: http://source.winehq.org/git/wine.git/?a=commit;h=31eef521e9dfbde80740b05606... Author: André Hentschel <nerv(a)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; }
participants (1)
-
Alexandre Julliard