tag: fix reference leak

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2009-06-10 14:24:22 +02:00
parent a8115bd45e
commit 6d755c5524
1 changed files with 3 additions and 0 deletions

3
tag.c
View File

@ -149,7 +149,10 @@ tag_client(client_t *c)
/* don't tag twice */
if(is_client_tagged(c, t))
{
tag_unref(globalconf.L, t);
return;
}
client_array_append(&t->clients, c);
ewmh_client_update_desktop(c);