Add missing destructor.
authorCarl Hetherington <cth@carlh.net>
Tue, 13 Aug 2024 21:15:28 +0000 (23:15 +0200)
committerCarl Hetherington <cth@carlh.net>
Tue, 13 Aug 2024 21:15:28 +0000 (23:15 +0200)
src/lib/analyse_subtitles_job.cc
src/lib/analyse_subtitles_job.h

index b41990db5f738dcfc5aad537a96b359861a4948d..b2346d4d92012ae98f8dd4f2ac73e3964a7d3a95 100644 (file)
@@ -50,6 +50,12 @@ AnalyseSubtitlesJob::AnalyseSubtitlesJob (shared_ptr<const Film> film, shared_pt
 }
 
 
+AnalyseSubtitlesJob::~AnalyseSubtitlesJob()
+{
+       stop_thread();
+}
+
+
 string
 AnalyseSubtitlesJob::name () const
 {
index c47117c5774835d8056205d08df83077547dc141..ea425763f846ca5af2022f755bbb344d8baa0d5d 100644 (file)
@@ -32,6 +32,7 @@ class AnalyseSubtitlesJob : public Job
 {
 public:
        AnalyseSubtitlesJob (std::shared_ptr<const Film> film, std::shared_ptr<Content> content);
+       ~AnalyseSubtitlesJob();
 
        std::string name () const override;
        std::string json_name () const override;