diff options
Diffstat (limited to 'nx-X11/programs/Xserver/hw/nxagent/Image.c')
-rw-r--r-- | nx-X11/programs/Xserver/hw/nxagent/Image.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Image.c b/nx-X11/programs/Xserver/hw/nxagent/Image.c index 590f0b249..978272f42 100644 --- a/nx-X11/programs/Xserver/hw/nxagent/Image.c +++ b/nx-X11/programs/Xserver/hw/nxagent/Image.c @@ -1567,10 +1567,7 @@ nxagentPutSubImageEnd: nxagentImageStatistics.totalEncoded, nxagentImageStatistics.totalAdded); #endif - if (packedChecksum != NULL) - { - free(packedChecksum); - } + free(packedChecksum); if (packedImage != NULL) { @@ -1787,11 +1784,7 @@ int nxagentScaleImage(int x, int y, unsigned xRatio, unsigned yRatio, } } - if (image -> obdata != NULL) - { - free((char *) image -> obdata); - } - + free((char *) image -> obdata); free((char *) image); *pImage = newImage; |