[taglist] Count tag references

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-05-22 08:46:14 +02:00
parent 7a5326e0ff
commit 65cdf2d536
1 changed files with 3 additions and 0 deletions

View File

@ -214,6 +214,7 @@ taglist_button_press(widget_node_t *w, statusbar_t *statusbar,
ltag = lua_newuserdata(globalconf.L, sizeof(tag_t *));
luaA_settype(globalconf.L, "tag");
*ltag = tag;
tag_ref(ltag);
luaA_dofunction(globalconf.L, b->fct, 1);
}
break;
@ -225,6 +226,7 @@ taglist_button_press(widget_node_t *w, statusbar_t *statusbar,
ltag = lua_newuserdata(globalconf.L, sizeof(tag_t *));
luaA_settype(globalconf.L, "tag");
*ltag = tag;
tag_ref(ltag);
luaA_dofunction(globalconf.L, b->fct, 1);
}
break;
@ -236,6 +238,7 @@ taglist_button_press(widget_node_t *w, statusbar_t *statusbar,
ltag = lua_newuserdata(globalconf.L, sizeof(tag_t *));
luaA_settype(globalconf.L, "tag");
*ltag = tag;
tag_ref(ltag);
luaA_dofunction(globalconf.L, b->fct, 1);
}
break;