wibox: fix memory leak with cursor
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
a08794d7cd
commit
9b61434f7e
1
wibox.c
1
wibox.c
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue