From 11e93c2dbfdca958742483250893b8ac9cfac1c6 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Wed, 11 Jun 2008 07:38:40 +0200 Subject: [PATCH] [client] Fix titlebar destruction We need to unref AFTER... Signed-off-by: Julien Danjou --- client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client.c b/client.c index 3b0d0d06..ca293ced 100644 --- a/client.c +++ b/client.c @@ -1327,8 +1327,8 @@ luaA_client_titlebar_set(lua_State *L) /* If client had a titlebar, unref it */ if((*c)->titlebar) { - titlebar_unref(&(*c)->titlebar); simplewindow_delete(&(*c)->titlebar->sw); + titlebar_unref(&(*c)->titlebar); } if(t)