summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVaxry <vaxry@vaxry.net>2026-01-05 16:31:16 +0100
committerVaxry <43317083+vaxerski@users.noreply.github.com>2026-01-05 18:53:29 +0100
commit3b77c784e255b3d1d4381ab3619b8e7b8e23a0d6 (patch)
tree18421d100262185c89f32f9695959527190baf22
parentd46df728fd40aac2219bf6a3961ad95174f71d16 (diff)
protocols/contentType: fix missing destroy
-rw-r--r--src/protocols/ContentType.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/protocols/ContentType.cpp b/src/protocols/ContentType.cpp
index 5e77a7cc..acae218c 100644
--- a/src/protocols/ContentType.cpp
+++ b/src/protocols/ContentType.cpp
@@ -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) {