Fix crash on close. v2.13.50
authorCarl Hetherington <cth@carlh.net>
Wed, 19 Sep 2018 00:35:48 +0000 (01:35 +0100)
committerCarl Hetherington <cth@carlh.net>
Wed, 19 Sep 2018 00:35:48 +0000 (01:35 +0100)
src/wx/controls.cc

index feef2e91c53c87862abe0f9ff8baec2536a3c4ea..c48628ed1244a37c4abe70c682d34b9c76267dea 100644 (file)
@@ -365,7 +365,9 @@ Controls::film_changed ()
        update_position_slider ();
        update_position_label ();
 
-       _film->Change.connect (boost::bind (&Controls::film_change, this, _1, _2));
+       if (_film) {
+               _film->Change.connect (boost::bind (&Controls::film_change, this, _1, _2));
+       }
 }
 
 shared_ptr<Film>