3
0
mirror of https://github.com/hyprwm/Hyprland.git synced 2026-02-04 14:25:28 +00:00

protocols/contentType: fix missing destroy

This commit is contained in:
Vaxry
2026-01-05 16:31:16 +01:00
committed by Vaxry
parent d46df728fd
commit 3b77c784e2

View File

@ -6,7 +6,7 @@ CContentTypeManager::CContentTypeManager(SP<CWpContentTypeManagerV1> resource) :
if UNLIKELY (!good())
return;
m_resource->setDestroy([](CWpContentTypeManagerV1* r) {});
m_resource->setDestroy([this](CWpContentTypeManagerV1* r) { PROTO::contentType->destroyResource(this); });
m_resource->setOnDestroy([this](CWpContentTypeManagerV1* r) { PROTO::contentType->destroyResource(this); });
m_resource->setGetSurfaceContentType([](CWpContentTypeManagerV1* r, uint32_t id, wl_resource* surface) {