property: fix bad deletion of reply (FS#502)

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2009-04-21 08:46:36 +02:00
parent 37071c5f6f
commit daf7192868
1 changed files with 3 additions and 1 deletions

View File

@ -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);
}