summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS3
-rw-r--r--src/x11_in_gtk2.c1
-rw-r--r--src/x11_in_gtk3.c1
3 files changed, 4 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 73fd78c..fa1a875 100644
--- a/NEWS
+++ b/NEWS
@@ -4,8 +4,9 @@ suil (0.8.7) unstable;
* Add support for Qt5 in Gtk2
* Add suil_init() to support early initialization and passing any necessary
information that may be needed in the future (thanks Stefan Westerfeld)
+ * Fix memory leaks
- -- David Robillard <d@drobilla.net> Sat, 18 Mar 2017 12:01:55 +0100
+ -- David Robillard <d@drobilla.net> Sun, 07 May 2017 13:23:10 +0200
suil (0.8.4) stable;
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;
}