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

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