From e2690092620e2f07e4b256dd90959709d549d72a Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 27 Mar 2020 23:39:39 +0100 Subject: [PATCH] Try to kill _writer process on exit. --- src/tools/dcpomatic_dist.cc | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/tools/dcpomatic_dist.cc b/src/tools/dcpomatic_dist.cc index 1720aaa79..c94062568 100644 --- a/src/tools/dcpomatic_dist.cc +++ b/src/tools/dcpomatic_dist.cc @@ -124,6 +124,12 @@ public: #endif } + ~DOMFrame () + { + _writer->terminate (); + delete _writer; + } + private: void sized (wxSizeEvent& ev) { @@ -275,6 +281,12 @@ public: return true; } + int OnExit () + { + _frame->Destroy (); + return 0; + } + void config_failed_to_load () { message_dialog (_frame, _("The existing configuration failed to load. Default values will be used instead. These may take a short time to create.")); -- 2.30.2