From: David Hill Date: Thu, 12 Jul 2012 17:28:49 +0000 (-0400) Subject: fix crash in get_win_name. X-Git-Url: https://jasonwoof.com/gitweb/?a=commitdiff_plain;h=9b6948f710e26720b9f1beec59e074a972fe4ca0;p=spectrwm.git fix crash in get_win_name. Only wipe the reply if the reply was successful. --- diff --git a/spectrwm.c b/spectrwm.c index 0d8242e..868ef20 100644 --- a/spectrwm.c +++ b/spectrwm.c @@ -3786,10 +3786,10 @@ get_win_name(xcb_window_t win) } memcpy(name, r.name, r.name_len); name[r.name_len] = '\0'; + + xcb_get_text_property_reply_wipe(&r); } - xcb_get_text_property_reply_wipe(&r); - return (name); }