Stop threads at the start of their object's destruction in all Job cases.
[dcpomatic.git] / src / lib / check_content_change_job.cc
index e1226e79c6af3ae7c21cc74115875f9711a1111d..1df3bc9cda1f945a15e87c41091214a3a1dc14fa 100644 (file)
@@ -42,6 +42,11 @@ CheckContentChangeJob::CheckContentChangeJob (shared_ptr<const Film> film, share
 
 }
 
+CheckContentChangeJob::~CheckContentChangeJob ()
+{
+       stop_thread ();
+}
+
 string
 CheckContentChangeJob::name () const
 {