diff --git a/objects/wibox.c b/objects/wibox.c index fb5ef960..066dbbff 100644 --- a/objects/wibox.c +++ b/objects/wibox.c @@ -94,7 +94,7 @@ wibox_widget_node_array_wipe(lua_State *L, int idx) { wibox_t *wibox = luaA_checkudata(L, idx, &wibox_class); foreach(widget_node, wibox->widgets) - luaA_object_unref_item(globalconf.L, idx, widget_node); + luaA_object_unref_item(globalconf.L, idx, widget_node->widget); widget_node_array_wipe(&wibox->widgets); }