aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2019-07-22 22:22:31 +0200
committerUlrich Sibiller <uli42@gmx.de>2019-08-06 21:57:32 +0200
commita9819436d8014e61c2d557bcd62124fe593be096 (patch)
tree24c96c2139f4d4a7368d90a2310edb210093bd6b /nx-X11/programs/Xserver
parent43e300ecdd7d960012f278fc8ee178cae4c81728 (diff)
downloadnx-libs-a9819436d8014e61c2d557bcd62124fe593be096.tar.gz
nx-libs-a9819436d8014e61c2d557bcd62124fe593be096.tar.bz2
nx-libs-a9819436d8014e61c2d557bcd62124fe593be096.zip
Drawable.c: use SAFE_free
Diffstat (limited to 'nx-X11/programs/Xserver')
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/Drawable.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Drawable.c b/nx-X11/programs/Xserver/hw/nxagent/Drawable.c
index 88f3da3a9..7574ec7b0 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Drawable.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Drawable.c
@@ -42,6 +42,7 @@
#include "Pixels.h"
#include "Reconnect.h"
#include "GCOps.h"
+#include "Utils.h"
#include "compext/Compext.h"
@@ -365,7 +366,7 @@ int nxagentSynchronizeDrawableData(DrawablePtr pDrawable, unsigned int breakMask
success = nxagentSynchronizeRegion(pDrawable, NullRegion, breakMask, owner);
nxagentSynchronizeDrawableDataEnd:
- free(data);
+ SAFE_free(data);
return success;
}
@@ -861,7 +862,7 @@ int nxagentSynchronizeRegion(DrawablePtr pDrawable, RegionPtr pRegion, unsigned
#endif
}
- free(cmpData);
+ SAFE_free(cmpData);
}
}
else
@@ -1058,7 +1059,7 @@ nxagentSynchronizeRegionFree:
nxagentFreeRegion(pDrawable, clipRegion);
}
- free(data);
+ SAFE_free(data);
RegionUninit(&exposeRegion);
@@ -2158,7 +2159,7 @@ unsigned long nxagentGetColor(DrawablePtr pDrawable, int xPixel, int yPixel)
fprintf(stderr, "nxagentGetColor: WARNING! Failed to create the XImage.\n");
#endif
- free(data);
+ SAFE_free(data);
return -1;
}
@@ -2384,7 +2385,7 @@ void nxagentFillRemoteRegion(DrawablePtr pDrawable, RegionPtr pRegion)
XFillRectangles(nxagentDisplay, nxagentDrawable(pDrawable), nxagentGC(pGC),
pRects, nrects);
- free(pRects);
+ SAFE_free(pRects);
}
}