tag: unref after calling hook
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
530b170cf0
commit
e1ddf089a2
2
tag.c
2
tag.c
|
@ -168,12 +168,12 @@ untag_client(client_t *c, tag_t *t)
|
||||||
{
|
{
|
||||||
client_need_arrange(c);
|
client_need_arrange(c);
|
||||||
client_array_take(&t->clients, i);
|
client_array_take(&t->clients, i);
|
||||||
tag_unref(&t);
|
|
||||||
client_saveprops_tags(c);
|
client_saveprops_tags(c);
|
||||||
/* call hook */
|
/* call hook */
|
||||||
luaA_client_userdata_new(globalconf.L, c);
|
luaA_client_userdata_new(globalconf.L, c);
|
||||||
luaA_tag_userdata_new(globalconf.L, t);
|
luaA_tag_userdata_new(globalconf.L, t);
|
||||||
luaA_dofunction(globalconf.L, globalconf.hooks.tagged, 2, 0);
|
luaA_dofunction(globalconf.L, globalconf.hooks.tagged, 2, 0);
|
||||||
|
tag_unref(&t);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue