diff options
-rw-r--r-- | src/x11_in_gtk2.c | 1 | ||||
-rw-r--r-- | src/x11_in_gtk3.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/x11_in_gtk2.c b/src/x11_in_gtk2.c index 4b9e3cf..268e312 100644 --- a/src/x11_in_gtk2.c +++ b/src/x11_in_gtk2.c @@ -69,6 +69,7 @@ x_window_is_valid(SuilX11Wrapper* socket) &root, &parent, &children, &childcount); for (unsigned i = 0; i < childcount; ++i) { if (children[i] == (Window)socket->instance->ui_widget) { + XFree(children); return true; } } diff --git a/src/x11_in_gtk3.c b/src/x11_in_gtk3.c index 0ff0ead..6dd00f6 100644 --- a/src/x11_in_gtk3.c +++ b/src/x11_in_gtk3.c @@ -70,6 +70,7 @@ x_window_is_valid(SuilX11Wrapper* socket) &root, &parent, &children, &childcount); for (unsigned i = 0; i < childcount; ++i) { if (children[i] == (Window)socket->instance->ui_widget) { + XFree(children); return true; } } |