summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2017-05-07 13:23:15 +0200
committerDavid Robillard <d@drobilla.net>2017-05-07 13:23:15 +0200
commit6fd032c93b16a54bad2fd10c39c7c085d527a597 (patch)
treed2d4d86b69b20244a56c07b8e033d07690b2c7b8
parent86c1666b1de5d291661549a4e9c49ec0314fd4fb (diff)
downloadsuil-6fd032c93b16a54bad2fd10c39c7c085d527a597.tar.gz
suil-6fd032c93b16a54bad2fd10c39c7c085d527a597.tar.bz2
suil-6fd032c93b16a54bad2fd10c39c7c085d527a597.zip
Fix memory leaks
-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;
}