Make the crop controls more like those on the v2.15.x branch
[dcpomatic.git] / test / job_test.cc
index f4c9658bfcc704f42562fef6a1f1ed29f501a728..22dd3a33a5ce94c735cca6d36538dac74e67616e 100644 (file)
@@ -34,12 +34,17 @@ using boost::shared_ptr;
 class TestJob : public Job
 {
 public:
-       TestJob (shared_ptr<Film> film)
+       explicit TestJob (shared_ptr<Film> film)
                : Job (film)
        {
 
        }
 
+       ~TestJob ()
+       {
+               stop_thread ();
+       }
+
        void set_finished_ok () {
                set_state (FINISHED_OK);
        }