summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2020-03-27 23:39:39 +0100
committerCarl Hetherington <cth@carlh.net>2020-03-28 19:47:28 +0100
commite2690092620e2f07e4b256dd90959709d549d72a (patch)
treee0bf64f36cf8023e3558a61d5805b63356e4214c /src
parent88eeb103e6dc6fe1f1b2dca5427691270f91d7ba (diff)
Try to kill _writer process on exit.
Diffstat (limited to 'src')
-rw-r--r--src/tools/dcpomatic_dist.cc12
1 files changed, 12 insertions, 0 deletions
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."));