From daf7192868dd3a123734bea25f52f01e0e419ccc Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Tue, 21 Apr 2009 08:46:36 +0200 Subject: [PATCH] property: fix bad deletion of reply (FS#502) Signed-off-by: Julien Danjou --- property.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/property.c b/property.c index 79565e8a5..7b0812f47 100644 --- a/property.c +++ b/property.c @@ -248,7 +248,9 @@ 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); - xcb_get_wm_class_reply_wipe(&hint); + /* only delete reply if we get it ourselves */ + if(!reply) + xcb_get_wm_class_reply_wipe(&hint); } /** Update client icon name attribute with its new title.