From: Michael Stapelberg Date: Wed, 19 Aug 2009 08:56:42 +0000 (+0200) Subject: Bugfix: Don’t crash when clients set an invalid leader hint X-Git-Tag: 3.c~10 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=4b3ea4d5244f568400ce3b8ddf6bdfa2767673e5;p=i3%2Fi3 Bugfix: Don’t crash when clients set an invalid leader hint --- diff --git a/src/handlers.c b/src/handlers.c index 61d1b711..2f98f019 100644 --- a/src/handlers.c +++ b/src/handlers.c @@ -1115,6 +1115,8 @@ int handle_clientleader_change(void *data, xcb_connection_t *conn, uint8_t state if (prop == NULL) { prop = xcb_get_property_reply(conn, xcb_get_property_unchecked(conn, false, window, WM_CLIENT_LEADER, WINDOW, 0, 32), NULL); + if (prop == NULL) + return 1; } Client *client = table_get(&by_child, window);