client: destroy proxy when no dtor is available

This commit is contained in:
Vaxry 2024-07-01 14:32:46 +02:00
parent 55c78a56c0
commit bd7b1f808e

View file

@ -894,6 +894,9 @@ void {}::onDestroyCalled() {{
break; break;
} }
if (DTOR_FUNC.empty())
DTOR_FUNC = "wl_proxy_destroy(pResource)";
SOURCE += std::format(R"#( SOURCE += std::format(R"#(
{}::{}(wl_resource* resource) {{ {}::{}(wl_resource* resource) {{
pResource = resource; pResource = resource;