summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/compositor/extensions/qwltexturesharingextension.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compositor/extensions/qwltexturesharingextension.cpp b/src/compositor/extensions/qwltexturesharingextension.cpp
index 1c15bb49..251c5fec 100644
--- a/src/compositor/extensions/qwltexturesharingextension.cpp
+++ b/src/compositor/extensions/qwltexturesharingextension.cpp
@@ -129,7 +129,7 @@ public:
~SharedTextureFactory() override
{
- if (m_buffer)
+ if (m_buffer && !QCoreApplication::closingDown())
const_cast<QtWayland::ServerBuffer*>(m_buffer)->releaseOpenGlTexture();
}