From: Carl Hetherington Date: Wed, 19 Sep 2018 00:35:48 +0000 (+0100) Subject: Fix crash on close. X-Git-Tag: v2.13.50^0 X-Git-Url: https://git.carlh.net/gitweb/?a=commitdiff_plain;h=94d13e93d7187c873e3a37e4c9b71ab9f62ae43a;hp=095c02bd546d73c918bb1df3ee62a3ba4f2c81f0;p=dcpomatic.git Fix crash on close. --- 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