]> git.sesse.net Git - kdenlive/blobdiff - src/kthumb.cpp
Fix crash on thumb generation:
[kdenlive] / src / kthumb.cpp
index 358e4223b13bee57001a185356221e2711048cc0..64ce5393a28740979cf9d822aa80c8d847cb384c 100644 (file)
@@ -145,6 +145,8 @@ KThumb::~KThumb()
 
 void KThumb::setProducer(Mlt::Producer *producer)
 {
+    m_requestedThumbs.clear();
+    m_future.waitForFinished();
     m_producer = producer;
     // FIXME: the profile() call leaks an object, but trying to free
     // it leads to a double-free in Profile::~Profile()