diff options
Diffstat (limited to 'libX11/src/xkb/XKBRdBuf.c')
-rw-r--r-- | libX11/src/xkb/XKBRdBuf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libX11/src/xkb/XKBRdBuf.c b/libX11/src/xkb/XKBRdBuf.c index 8e9eab238..0a29bdca4 100644 --- a/libX11/src/xkb/XKBRdBuf.c +++ b/libX11/src/xkb/XKBRdBuf.c @@ -167,8 +167,8 @@ _XkbFreeReadBuffer(XkbReadBufferPtr buf) int left; left = (int) _XkbReadBufferDataLeft(buf); - if (buf->start != NULL) - Xfree(buf->start); + + Xfree(buf->start); buf->size = 0; buf->start = buf->data = NULL; return left; |