aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTuomas Siipola <tuomas@zpl.fi>2020-07-06 18:53:44 +0300
committerHarry Jeffery <harry@exec64.co.uk>2020-07-21 01:47:24 +0100
commitebcca1345201fd10f42c7a24790ee32384be0729 (patch)
tree2a71b335d4fd725776731b2415c7c46a25a7c0c4 /src
parentb37902d4382c420456ed3076afd632333b98c66e (diff)
downloadimv-ebcca1345201fd10f42c7a24790ee32384be0729.tar.gz
Fix `XVisualInfo` leak
It's not documented when this value should be freed but other GLX applications free it here.
Diffstat (limited to 'src')
-rw-r--r--src/x11_window.c2
1 files changed, 2 insertions, 0 deletions
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;
}