From 4ac19e9f9cf38bc146ba42cc7ce89b29e748b30f Mon Sep 17 00:00:00 2001 From: Kirill Primak Date: Mon, 16 May 2022 20:35:31 +0300 Subject: util/addon: avoid calling finish() twice No functional change. --- util/addon.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'util') diff --git a/util/addon.c b/util/addon.c index c9b373a7..10aed744 100644 --- a/util/addon.c +++ b/util/addon.c @@ -12,7 +12,6 @@ void wlr_addon_set_init(struct wlr_addon_set *set) { void wlr_addon_set_finish(struct wlr_addon_set *set) { struct wlr_addon *addon, *tmp; wl_list_for_each_safe(addon, tmp, &set->addons, link) { - wlr_addon_finish(addon); addon->impl->destroy(addon); } } @@ -34,7 +33,6 @@ void wlr_addon_init(struct wlr_addon *addon, struct wlr_addon_set *set, void wlr_addon_finish(struct wlr_addon *addon) { wl_list_remove(&addon->link); - wl_list_init(&addon->link); } struct wlr_addon *wlr_addon_find(struct wlr_addon_set *set, const void *owner, -- cgit v1.2.3