wibox: fix memory leak with cursor

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2009-04-13 12:40:33 +02:00
parent a08794d7cd
commit 9b61434f7e

View file

@ -38,6 +38,7 @@ static int
luaA_wibox_gc(lua_State *L)
{
wibox_t *wibox = luaL_checkudata(L, 1, "wibox");
p_delete(&wibox->cursor);
simplewindow_wipe(&wibox->sw);
button_array_wipe(&wibox->buttons);
image_unref(L, wibox->bg_image);