From 9e13e0915273959bfd98a10662f678c15ac71c77 Mon Sep 17 00:00:00 2001 From: Vaxry Date: Sat, 20 Apr 2024 14:26:26 +0100 Subject: [PATCH] core: remove destroy listener after fired --- src/main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index 35d6648..7714808 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -568,6 +568,8 @@ static const wl_message {}[] = {{ void {}::onDestroyCalled() {{ wl_resource_set_user_data(pResource, nullptr); + wl_list_remove(&resourceDestroyListener.link); + wl_list_init(&resourceDestroyListener.link); if (onDestroy) onDestroy(this);