Commit 8080ad26 authored by Ulrich Sibiller's avatar Ulrich Sibiller

GCOps.c: use SAFE_free

parent 6378d5ad
...@@ -57,6 +57,7 @@ is" without express or implied warranty. ...@@ -57,6 +57,7 @@ is" without express or implied warranty.
#include "Holder.h" #include "Holder.h"
#include "Args.h" #include "Args.h"
#include "Screen.h" #include "Screen.h"
#include "Utils.h"
#include "compext/Compext.h" #include "compext/Compext.h"
...@@ -787,7 +788,7 @@ RegionPtr nxagentCopyArea(DrawablePtr pSrcDrawable, DrawablePtr pDstDrawable, ...@@ -787,7 +788,7 @@ RegionPtr nxagentCopyArea(DrawablePtr pSrcDrawable, DrawablePtr pDstDrawable,
srcx, srcy, width, height); srcx, srcy, width, height);
#endif #endif
free(data); SAFE_free(data);
/* /*
* If the source is a shared memory pixmap, the * If the source is a shared memory pixmap, the
...@@ -1007,7 +1008,7 @@ RegionPtr nxagentCopyPlane(DrawablePtr pSrcDrawable, DrawablePtr pDstDrawable, ...@@ -1007,7 +1008,7 @@ RegionPtr nxagentCopyPlane(DrawablePtr pSrcDrawable, DrawablePtr pDstDrawable,
srcx, srcy, width, height); srcx, srcy, width, height);
#endif #endif
free(data); SAFE_free(data);
/* /*
* If the source is a shared memory pixmap, the * If the source is a shared memory pixmap, the
...@@ -1545,7 +1546,7 @@ void nxagentFillPolygon(DrawablePtr pDrawable, GCPtr pGC, int shape, ...@@ -1545,7 +1546,7 @@ void nxagentFillPolygon(DrawablePtr pDrawable, GCPtr pGC, int shape,
RESET_GC_TRAP(); RESET_GC_TRAP();
} }
free(newPoints); SAFE_free(newPoints);
} }
void nxagentPolyFillRect(DrawablePtr pDrawable, GCPtr pGC, void nxagentPolyFillRect(DrawablePtr pDrawable, GCPtr pGC,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment