From 52638c1b22e8eb2a52df3366134c8f37e4840645 Mon Sep 17 00:00:00 2001 From: Robert Guziolowski Date: Thu, 28 Mar 2024 09:46:08 +0100 Subject: [PATCH] qml6glsink: fix destruction of underlying texture One should not directly delete the QRhiTexture instance. Instead it should be marked as to be deleted once QRhi::endFrame() is called (see: https://doc.qt.io/qt-6/qrhiresource.html#deleteLater ) Fixes: https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/3443 Part-of: --- subprojects/gst-plugins-good/ext/qt6/gstqsg6material.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subprojects/gst-plugins-good/ext/qt6/gstqsg6material.cc b/subprojects/gst-plugins-good/ext/qt6/gstqsg6material.cc index 8261e4e215..017ae1efc5 100644 --- a/subprojects/gst-plugins-good/ext/qt6/gstqsg6material.cc +++ b/subprojects/gst-plugins-good/ext/qt6/gstqsg6material.cc @@ -223,7 +223,7 @@ GstQSGTexture::GstQSGTexture(QRhiTexture * texture) GstQSGTexture::~GstQSGTexture() { if (m_texture) { - delete m_texture; + m_texture->deleteLater(); m_texture = nullptr; } }