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; } }