diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-09-12 01:09:03 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-09-27 13:41:46 +0200 |
| commit | 0b791ea708dfa1f5cd44522988dd5efdf2a0b94b (patch) | |
| tree | 39cb17f7a05b6ef468a6947cee7910a098aa020c /src/wx/film_viewer.cc | |
| parent | 10f36696805235c774890a4618b7187dd75750d4 (diff) | |
Tidy ownership/lifetime of GLVideoView to fix crashes on close.
Diffstat (limited to 'src/wx/film_viewer.cc')
| -rw-r--r-- | src/wx/film_viewer.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wx/film_viewer.cc b/src/wx/film_viewer.cc index a3c015ab1..77c2e85d6 100644 --- a/src/wx/film_viewer.cc +++ b/src/wx/film_viewer.cc @@ -96,10 +96,10 @@ FilmViewer::FilmViewer (wxWindow* p) { switch (Config::instance()->video_view_type()) { case Config::VIDEO_VIEW_OPENGL: - _video_view = new GLVideoView (this, p); + _video_view = std::make_shared<GLVideoView>(this, p); break; case Config::VIDEO_VIEW_SIMPLE: - _video_view = new SimpleVideoView (this, p); + _video_view = std::make_shared<SimpleVideoView>(this, p); break; } |
