/** Garbage collect a tag. * \param L The Lua VM state. * \return 0. */ static int luaA_tag_gc(lua_State *L) { tag_t *tag = luaL_checkudata(L, 1, "tag"); client_array_wipe(&tag->clients); p_delete(&tag->name); return 0; }
/** Garbage collect a tag. * \param L The Lua VM state. * \return 0. */ static int luaA_tag_gc(lua_State *L) { tag_t *tag = luaA_checkudata(L, 1, &tag_class); client_array_wipe(&tag->clients); p_delete(&tag->name); return luaA_object_gc(L); }
static void tag_wipe(tag_t *tag) { client_array_wipe(&tag->clients); p_delete(&tag->name); }