JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
fix crash in get_win_name.
authorDavid Hill <dhill@conformal.com>
Thu, 12 Jul 2012 17:28:49 +0000 (13:28 -0400)
committerReginald Kennedy <rk@rejii.com>
Fri, 20 Jul 2012 21:58:32 +0000 (05:58 +0800)
Only wipe the reply if the reply was successful.

spectrwm.c

index 0d8242e..868ef20 100644 (file)
@@ -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);
 }