Stop threads at the start of their object's destruction in all Job cases.
[dcpomatic.git] / src / lib / analyse_audio_job.cc
index 9d0882b3ad22b3061f243d53ae78f91146042d3d..ad28dcfd40892695f211c36f06b65188651b20e5 100644 (file)
@@ -83,6 +83,7 @@ AnalyseAudioJob::AnalyseAudioJob (shared_ptr<const Film> film, shared_ptr<const
 
 AnalyseAudioJob::~AnalyseAudioJob ()
 {
+       stop_thread ();
        BOOST_FOREACH (Filter const * i, _filters) {
                delete const_cast<Filter*> (i);
        }