mirror of
https://github.com/hyprwm/hyprwayland-scanner.git
synced 2024-11-08 06:35:58 +01:00
client: destroy proxy when no dtor is available
This commit is contained in:
parent
55c78a56c0
commit
bd7b1f808e
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue