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;