summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2020-02-06 21:56:49 +0100
committerCarl Hetherington <cth@carlh.net>2020-02-06 21:56:49 +0100
commit9d87639be7c1f108f249944632273d15afaed70b (patch)
tree4fc209c46f6cbaae2ed02d28d075a54f50301d1e /src
parentdec5ae11238495c64fffdab37f189d96aed7d636 (diff)
Fix crash.
Diffstat (limited to 'src')
-rw-r--r--src/wx/gl_video_view.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/wx/gl_video_view.cc b/src/wx/gl_video_view.cc
index ebf4098e4..0e4bcb671 100644
--- a/src/wx/gl_video_view.cc
+++ b/src/wx/gl_video_view.cc
@@ -117,6 +117,10 @@ GLVideoView::~GLVideoView ()
void
GLVideoView::check_for_butler_errors ()
{
+ if (!_viewer->butler()) {
+ return;
+ }
+
try {
_viewer->butler()->rethrow ();
} catch (DecodeError& e) {