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
1 changed files with 1 additions and 0 deletions

View File

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