aboutsummaryrefslogtreecommitdiff
path: root/xorg-server/hw/xwin/wincmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'xorg-server/hw/xwin/wincmap.c')
-rw-r--r--xorg-server/hw/xwin/wincmap.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/xorg-server/hw/xwin/wincmap.c b/xorg-server/hw/xwin/wincmap.c
index 370a4c584..83279fd84 100644
--- a/xorg-server/hw/xwin/wincmap.c
+++ b/xorg-server/hw/xwin/wincmap.c
@@ -494,11 +494,8 @@ winGetPaletteDD (ScreenPtr pScreen, ColormapPtr pcmap)
pScreen->blackPixel = 0;
/* Free colormap */
- if (ppeColors != NULL)
- {
- free (ppeColors);
- ppeColors = NULL;
- }
+ free(ppeColors);
+ ppeColors = NULL;
/* Free the DC */
if (hdc != NULL)