tag: fix reference leak
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
a8115bd45e
commit
6d755c5524
3
tag.c
3
tag.c
|
@ -149,7 +149,10 @@ tag_client(client_t *c)
|
||||||
|
|
||||||
/* don't tag twice */
|
/* don't tag twice */
|
||||||
if(is_client_tagged(c, t))
|
if(is_client_tagged(c, t))
|
||||||
|
{
|
||||||
|
tag_unref(globalconf.L, t);
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
client_array_append(&t->clients, c);
|
client_array_append(&t->clients, c);
|
||||||
ewmh_client_update_desktop(c);
|
ewmh_client_update_desktop(c);
|
||||||
|
|
Loading…
Reference in New Issue