Stop threads at the start of their object's destruction in all Job cases.
[dcpomatic.git] / src / lib / examine_content_job.cc
index 86e0a107e1eec1d6351ded90b132e1a24a3a16e3..3be38863d46e4204bf364da3989ee4b1d7e0fe19 100644 (file)
@@ -38,6 +38,11 @@ ExamineContentJob::ExamineContentJob (shared_ptr<const Film> film, shared_ptr<Co
 
 }
 
+ExamineContentJob::~ExamineContentJob ()
+{
+       stop_thread ();
+}
+
 string
 ExamineContentJob::name () const
 {