summaryrefslogtreecommitdiff
path: root/src/wx/controls.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2021-09-12 01:09:03 +0200
committerCarl Hetherington <cth@carlh.net>2021-09-27 13:41:46 +0200
commit0b791ea708dfa1f5cd44522988dd5efdf2a0b94b (patch)
tree39cb17f7a05b6ef468a6947cee7910a098aa020c /src/wx/controls.h
parent10f36696805235c774890a4618b7187dd75750d4 (diff)
Tidy ownership/lifetime of GLVideoView to fix crashes on close.
Diffstat (limited to 'src/wx/controls.h')
-rw-r--r--src/wx/controls.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wx/controls.h b/src/wx/controls.h
index 9a22d7709..377960425 100644
--- a/src/wx/controls.h
+++ b/src/wx/controls.h
@@ -79,7 +79,7 @@ protected:
wxBoxSizer* _button_sizer;
std::shared_ptr<Film> _film;
wxSlider* _slider;
- std::shared_ptr<FilmViewer> _viewer;
+ std::weak_ptr<FilmViewer> _viewer;
boost::optional<std::string> _active_job;
private: