From 6fd032c93b16a54bad2fd10c39c7c085d527a597 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 7 May 2017 13:23:15 +0200 Subject: Fix memory leaks --- src/x11_in_gtk2.c | 1 + src/x11_in_gtk3.c | 1 + 2 files changed, 2 insertions(+) (limited to 'src') diff --git a/src/x11_in_gtk2.c b/src/x11_in_gtk2.c index dc69477..43e1fa1 100644 --- a/src/x11_in_gtk2.c +++ b/src/x11_in_gtk2.c @@ -72,6 +72,7 @@ x_window_is_valid(SuilX11Wrapper* socket) return true; } } + XFree(children); return false; } diff --git a/src/x11_in_gtk3.c b/src/x11_in_gtk3.c index 86f8bde..c21a23f 100644 --- a/src/x11_in_gtk3.c +++ b/src/x11_in_gtk3.c @@ -73,6 +73,7 @@ x_window_is_valid(SuilX11Wrapper* socket) return true; } } + XFree(children); return false; } -- cgit v1.2.1