[client] Fix titlebar destruction

We need to unref AFTER...

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-06-11 07:38:40 +02:00
parent 276f5f8849
commit 11e93c2dbf
1 changed files with 1 additions and 1 deletions

View File

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