Fix leak in xkbcomp.c
Accidentally regressed this one briefly, oops. Signed-off-by: Daniel Stone <daniel@fooishbar.org>master
parent
54aa839c0e
commit
3d38da0c5b
|
@ -207,13 +207,11 @@ compile_keymap(XkbFile *file, const char *mapName)
|
||||||
if (!xkb)
|
if (!xkb)
|
||||||
goto err;
|
goto err;
|
||||||
|
|
||||||
return xkb;
|
|
||||||
|
|
||||||
err:
|
err:
|
||||||
FreeXKBFile(file);
|
FreeXKBFile(file);
|
||||||
free(scanFile);
|
free(scanFile);
|
||||||
XkbFreeIncludePath();
|
XkbFreeIncludePath();
|
||||||
return NULL;
|
return xkb;
|
||||||
}
|
}
|
||||||
|
|
||||||
struct xkb_desc *
|
struct xkb_desc *
|
||||||
|
|
Loading…
Reference in New Issue