Fix a memleak

Introduced in 38cb639082.

Signed-off-by: Ran Benita <ran234@gmail.com>
master
Ran Benita 2012-05-13 10:38:51 +03:00 committed by name
parent ab82e0ebc3
commit b571b83459
1 changed files with 1 additions and 1 deletions

View File

@ -346,7 +346,7 @@ XkbcFreeServerMap(struct xkb_keymap *keymap)
{
struct xkb_server_map * map;
if (keymap || keymap->server)
if (!keymap || !keymap->server)
return;
map = keymap->server;