From ebcca1345201fd10f42c7a24790ee32384be0729 Mon Sep 17 00:00:00 2001 From: Tuomas Siipola Date: Mon, 6 Jul 2020 18:53:44 +0300 Subject: Fix `XVisualInfo` leak It's not documented when this value should be freed but other GLX applications free it here. --- src/x11_window.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/x11_window.c b/src/x11_window.c index 34770b9..77699f6 100644 --- a/src/x11_window.c +++ b/src/x11_window.c @@ -151,6 +151,8 @@ struct imv_window *imv_window_create(int w, int h, const char *title) setup_keymap(window); + XFree(vi); + return window; } -- cgit v1.2.3