From 6d755c55244493c8fd7b88f5652a728318925c43 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Wed, 10 Jun 2009 14:24:22 +0200 Subject: [PATCH] tag: fix reference leak Signed-off-by: Julien Danjou --- tag.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tag.c b/tag.c index 8caf4ce9..8400b530 100644 --- a/tag.c +++ b/tag.c @@ -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);