Avoid leak in CompileKeymap error path
authorRan Benita <ran234@gmail.com>
Fri, 30 Mar 2012 23:30:33 +0000 (02:30 +0300)
committerDaniel Stone <daniel@fooishbar.org>
Mon, 2 Apr 2012 12:10:38 +0000 (13:10 +0100)
commit7a7ec9b14a11a986cd91a4faab6af7f4367a3a16
tree2526964f2ef46d1a8fe2060890bd48ba35e573a0
parent5c5f7fcb7c35a46efd05e840e593871538242b78
Avoid leak in CompileKeymap error path

The NULL check is unneeded, and prevented the atoms from being free'd.

Signed-off-by: Ran Benita <ran234@gmail.com>
[daniels: Updated for xkb_map_unref.]
src/xkbcomp/keymap.c