aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/hw/nxagent/Pixmap.c
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2017-11-18 23:33:53 +0100
committerUlrich Sibiller <uli42@gmx.de>2017-11-21 01:41:57 +0100
commit7e975e3ccff9aa809c1fec7b2642615f2a934c10 (patch)
tree87c4b5833476c339d20af4af5bc04e3d1daa7603 /nx-X11/programs/Xserver/hw/nxagent/Pixmap.c
parent3b640a0f8de615e53dd6801ebd2aa0cf04f76c69 (diff)
downloadnx-libs-7e975e3ccff9aa809c1fec7b2642615f2a934c10.tar.gz
nx-libs-7e975e3ccff9aa809c1fec7b2642615f2a934c10.tar.bz2
nx-libs-7e975e3ccff9aa809c1fec7b2642615f2a934c10.zip
simply free() calls
free() can handle NULL so there's no need to check this ourselves
Diffstat (limited to 'nx-X11/programs/Xserver/hw/nxagent/Pixmap.c')
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/Pixmap.c15
1 files changed, 3 insertions, 12 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Pixmap.c b/nx-X11/programs/Xserver/hw/nxagent/Pixmap.c
index be5408d13..853621709 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Pixmap.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Pixmap.c
@@ -1172,10 +1172,7 @@ Bool nxagentCheckPixmapIntegrity(PixmapPtr pPixmap)
XDestroyImage(image);
}
- if (data != NULL)
- {
- free(data);
- }
+ free(data);
}
else
{
@@ -1421,10 +1418,7 @@ FIXME: If the pixmap has a different depth from the window, the
fprintf(stderr, "nxagentPixmapOnShadowDisplay: XCreateImage failed.\n");
#endif
- if (data != NULL)
- {
- free(data);
- }
+ free(data);
return False;
}
@@ -1583,10 +1577,7 @@ Bool nxagentFbOnShadowDisplay()
fprintf(stderr, "nxagentFbOnShadowDisplay: XCreateImage failed.\n");
#endif
- if (data)
- {
- free(data);
- }
+ free(data);
return False;
}