Fix org_kde_plasma_surface destroyer lambda leak

This commit is contained in:
Ilya Fedin 2023-09-16 01:21:01 +04:00 committed by John Preston
parent ab53b4eab7
commit 7dbf331e18
1 changed files with 1 additions and 1 deletions

View File

@ -97,7 +97,7 @@ QtWayland::org_kde_plasma_surface WaylandIntegration::Private::plasmaSurface(
if (it != plasmaShell->surfaces.cend()) {
plasmaShell->surfaces.erase(it);
}
}, lifetime);
}, result.first->second.lifetime());
return result.first->second;
}