property: fix bad deletion of reply (FS#502)
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
37071c5f6f
commit
daf7192868
|
@ -248,6 +248,8 @@ property_update_wm_class(client_t *c, xcb_get_property_reply_t *reply)
|
|||
|
||||
c->instance = a_strdup(hint.instance_name);
|
||||
c->class = a_strdup(hint.class_name);
|
||||
/* only delete reply if we get it ourselves */
|
||||
if(!reply)
|
||||
xcb_get_wm_class_reply_wipe(&hint);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue