Commit a9819436 authored by Ulrich Sibiller's avatar Ulrich Sibiller

Drawable.c: use SAFE_free

parent 43e300ec
...@@ -42,6 +42,7 @@ ...@@ -42,6 +42,7 @@
#include "Pixels.h" #include "Pixels.h"
#include "Reconnect.h" #include "Reconnect.h"
#include "GCOps.h" #include "GCOps.h"
#include "Utils.h"
#include "compext/Compext.h" #include "compext/Compext.h"
...@@ -365,7 +366,7 @@ int nxagentSynchronizeDrawableData(DrawablePtr pDrawable, unsigned int breakMask ...@@ -365,7 +366,7 @@ int nxagentSynchronizeDrawableData(DrawablePtr pDrawable, unsigned int breakMask
success = nxagentSynchronizeRegion(pDrawable, NullRegion, breakMask, owner); success = nxagentSynchronizeRegion(pDrawable, NullRegion, breakMask, owner);
nxagentSynchronizeDrawableDataEnd: nxagentSynchronizeDrawableDataEnd:
free(data); SAFE_free(data);
return success; return success;
} }
...@@ -861,7 +862,7 @@ int nxagentSynchronizeRegion(DrawablePtr pDrawable, RegionPtr pRegion, unsigned ...@@ -861,7 +862,7 @@ int nxagentSynchronizeRegion(DrawablePtr pDrawable, RegionPtr pRegion, unsigned
#endif #endif
} }
free(cmpData); SAFE_free(cmpData);
} }
} }
else else
...@@ -1058,7 +1059,7 @@ nxagentSynchronizeRegionFree: ...@@ -1058,7 +1059,7 @@ nxagentSynchronizeRegionFree:
nxagentFreeRegion(pDrawable, clipRegion); nxagentFreeRegion(pDrawable, clipRegion);
} }
free(data); SAFE_free(data);
RegionUninit(&exposeRegion); RegionUninit(&exposeRegion);
...@@ -2158,7 +2159,7 @@ unsigned long nxagentGetColor(DrawablePtr pDrawable, int xPixel, int yPixel) ...@@ -2158,7 +2159,7 @@ unsigned long nxagentGetColor(DrawablePtr pDrawable, int xPixel, int yPixel)
fprintf(stderr, "nxagentGetColor: WARNING! Failed to create the XImage.\n"); fprintf(stderr, "nxagentGetColor: WARNING! Failed to create the XImage.\n");
#endif #endif
free(data); SAFE_free(data);
return -1; return -1;
} }
...@@ -2384,7 +2385,7 @@ void nxagentFillRemoteRegion(DrawablePtr pDrawable, RegionPtr pRegion) ...@@ -2384,7 +2385,7 @@ void nxagentFillRemoteRegion(DrawablePtr pDrawable, RegionPtr pRegion)
XFillRectangles(nxagentDisplay, nxagentDrawable(pDrawable), nxagentGC(pGC), XFillRectangles(nxagentDisplay, nxagentDrawable(pDrawable), nxagentGC(pGC),
pRects, nrects); pRects, nrects);
free(pRects); SAFE_free(pRects);
} }
} }
......
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