From bd7b1f808e0df47754b8c1991aafc82f2a37a3b0 Mon Sep 17 00:00:00 2001 From: Vaxry Date: Mon, 1 Jul 2024 14:32:46 +0200 Subject: [PATCH] client: destroy proxy when no dtor is available --- src/main.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index 0623519..bc52b25 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -894,6 +894,9 @@ void {}::onDestroyCalled() {{ break; } + if (DTOR_FUNC.empty()) + DTOR_FUNC = "wl_proxy_destroy(pResource)"; + SOURCE += std::format(R"#( {}::{}(wl_resource* resource) {{ pResource = resource;