tag: unref after calling hook

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-11-20 17:47:13 +01:00
parent 530b170cf0
commit e1ddf089a2

2
tag.c
View file

@ -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;
}
}