summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Harris <pharris@opentext.com>2013-05-30 18:43:56 -0400
committerPeter Harris <pharris@opentext.com>2013-05-30 18:43:56 -0400
commitd3e7db3fb3c2bd39e30bc1d4ccdf81a00b556c31 (patch)
treea28b4cc17366e1ff74be3751137753a5d5701e9b
parent622e14b83cd2ccf043e8bfd25c3dccf69273db71 (diff)
Fix pointer/int warnings in xts5/xim/response.c
psd->data.bitmap is never set, but it's better to make sure we never try to free() an XID. Signed-off-by: Peter Harris <pharris@opentext.com>
-rw-r--r--xts5/src/xim/response.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/xts5/src/xim/response.c b/xts5/src/xim/response.c
index b00ccdd7..c554acb0 100644
--- a/xts5/src/xim/response.c
+++ b/xts5/src/xim/response.c
@@ -455,8 +455,8 @@ void xim_response_pop_cb(pstk)
}
else
{
- if(psd->data.bitmap != NULL)
- free(psd->data.bitmap);
+ if(psd->data.bitmap != None)
+ XFreePixmap(Dsp, psd->data.bitmap);
}
break;
default:
@@ -1133,7 +1133,7 @@ static Pixmap read_pixmap()
parse_skwhite(&presponse);
}
- return(NULL);
+ return(None);
}
/* read the callback data from a response file for */