From e1ddf089a22dd52f0d6e9aaecf397b280adc4c7e Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Thu, 20 Nov 2008 17:47:13 +0100 Subject: [PATCH] tag: unref after calling hook Signed-off-by: Julien Danjou --- tag.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tag.c b/tag.c index 35904841..d983b5e8 100644 --- a/tag.c +++ b/tag.c @@ -168,12 +168,12 @@ untag_client(client_t *c, tag_t *t) { client_need_arrange(c); client_array_take(&t->clients, i); - tag_unref(&t); client_saveprops_tags(c); /* call hook */ luaA_client_userdata_new(globalconf.L, c); luaA_tag_userdata_new(globalconf.L, t); luaA_dofunction(globalconf.L, globalconf.hooks.tagged, 2, 0); + tag_unref(&t); return; } }