tag: unref later

I somehow miss that patch in the merge.

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-08-13 11:35:52 +02:00
parent 40c455046b
commit 62c2fb1293
1 changed files with 1 additions and 1 deletions

2
tag.c
View File

@ -154,8 +154,8 @@ untag_client(client_t *c, tag_t *t)
for(int i = 0; i < t->clients.len; i++) for(int i = 0; i < t->clients.len; i++)
if(t->clients.tab[i] == c) if(t->clients.tab[i] == c)
{ {
tag_unref(&t);
client_array_take(&t->clients, i); client_array_take(&t->clients, i);
tag_unref(&t);
client_saveprops(c); client_saveprops(c);
widget_invalidate_cache(c->screen, WIDGET_CACHE_CLIENTS); widget_invalidate_cache(c->screen, WIDGET_CACHE_CLIENTS);
globalconf.screens[c->screen].need_arrange = true; globalconf.screens[c->screen].need_arrange = true;