From 94d13e93d7187c873e3a37e4c9b71ab9f62ae43a Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 19 Sep 2018 01:35:48 +0100 Subject: Fix crash on close. --- src/wx/controls.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/wx/controls.cc b/src/wx/controls.cc index feef2e91c..c48628ed1 100644 --- a/src/wx/controls.cc +++ b/src/wx/controls.cc @@ -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 -- cgit v1.2.3