aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTuomas Siipola <tuomas@zpl.fi>2020-07-06 18:51:00 +0300
committerHarry Jeffery <harry@exec64.co.uk>2020-07-21 01:47:24 +0100
commitd457ced783b0c00e32d44d86b9e8266d0641f3ea (patch)
treea5be46c7b02616326d044a587e32b4decad2f33c /src
parenta200fbf945557100eace0c9104c0ed2542ca47ee (diff)
downloadimv-d457ced783b0c00e32d44d86b9e8266d0641f3ea.tar.gz
Fix `keymap` leak
Diffstat (limited to 'src')
-rw-r--r--src/x11_window.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/x11_window.c b/src/x11_window.c
index d4b187f..5c7fb93 100644
--- a/src/x11_window.c
+++ b/src/x11_window.c
@@ -82,6 +82,7 @@ static void setup_keymap(struct imv_window *window)
char *keymap_str = xkb_keymap_get_as_string(keymap, XKB_KEYMAP_USE_ORIGINAL_FORMAT);
imv_keyboard_set_keymap(window->keyboard, keymap_str);
free(keymap_str);
+ xkb_keymap_unref(keymap);
} else {
imv_log(IMV_ERROR, "x11_window: Failed to load keymap. xkb_x11_keymap_new_from_device returned NULL.");
}