summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/x11_in_gtk2.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/x11_in_gtk2.c b/src/x11_in_gtk2.c
index b16fe37..69fbc17 100644
--- a/src/x11_in_gtk2.c
+++ b/src/x11_in_gtk2.c
@@ -83,7 +83,9 @@ x_window_is_valid(SuilX11Wrapper* socket)
return true;
}
}
- XFree(children);
+ if (children) {
+ XFree(children);
+ }
return false;
}