diff --git a/Source/GUI/dvrescue/dvrescue/mediaplayer.cpp b/Source/GUI/dvrescue/dvrescue/mediaplayer.cpp index 9c3f96a7..9c873d61 100644 --- a/Source/GUI/dvrescue/dvrescue/mediaplayer.cpp +++ b/Source/GUI/dvrescue/dvrescue/mediaplayer.cpp @@ -256,7 +256,10 @@ void MediaPlayer::setBuffer(QIODevice* newBuffer) { if (m_buffer.get() == newBuffer) return; - m_buffer.reset(newBuffer); + + m_buffer.reset(newBuffer, [](QObject*){}); // NoDeleter + // RAW pointer is owned by the QML engine + // and deleted outside of the shared pointer QSharedPointer dev(new QAVIODevice(m_buffer));