Destroy Job threads at the start of the subclass destructors,
[dcpomatic.git] / src / lib / transcode_job.cc
index 1db37e3708b27748ada7455763a2c753e63e30f6..f2711bf1760e86e4fc837fff27d91ec2b2822290 100644 (file)
@@ -51,6 +51,11 @@ TranscodeJob::TranscodeJob (shared_ptr<const Film> film)
 
 }
 
+TranscodeJob::~TranscodeJob ()
+{
+       destroy_thread ();
+}
+
 string
 TranscodeJob::name () const
 {