diff options
author | Robin Gareus <robin@gareus.org> | 2020-01-07 14:25:49 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-02-12 19:06:18 +0100 |
commit | 87532252e2aa0ea15f6a97df76c51a93c1378b20 (patch) | |
tree | 804aefb65645f5e4032eb7b61be918a5be1fae92 /src | |
parent | 31b6c21cb71010ab6202d345c9549d5b5dab9540 (diff) | |
download | suil-87532252e2aa0ea15f6a97df76c51a93c1378b20.tar.gz suil-87532252e2aa0ea15f6a97df76c51a93c1378b20.tar.bz2 suil-87532252e2aa0ea15f6a97df76c51a93c1378b20.zip |
Avoid passing NULL to XFree()
Apparently this is not supported by some implementation or another, although my
man page says it's fine.
Diffstat (limited to 'src')
-rw-r--r-- | src/x11_in_gtk2.c | 4 |
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; } |