Fix crash.
authorCarl Hetherington <cth@carlh.net>
Thu, 6 Feb 2020 20:56:49 +0000 (21:56 +0100)
committerCarl Hetherington <cth@carlh.net>
Thu, 6 Feb 2020 20:56:49 +0000 (21:56 +0100)
src/wx/gl_video_view.cc

index ebf4098..0e4bcb6 100644 (file)
@@ -117,6 +117,10 @@ GLVideoView::~GLVideoView ()
 void
 GLVideoView::check_for_butler_errors ()
 {
+       if (!_viewer->butler()) {
+               return;
+       }
+
        try {
                _viewer->butler()->rethrow ();
        } catch (DecodeError& e) {