From: Frederic Bouvier Date: Sun, 7 Nov 2010 09:31:13 +0000 (+0100) Subject: Don't crash on exit X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=98d0f33f8f9257a06307c661a455e2681cb12662;p=simgear.git Don't crash on exit --- diff --git a/simgear/props/props.cxx b/simgear/props/props.cxx index 3d63758e..193f02d3 100644 --- a/simgear/props/props.cxx +++ b/simgear/props/props.cxx @@ -2068,6 +2068,8 @@ SGPropertyNode::addChangeListener (SGPropertyChangeListener * listener, void SGPropertyNode::removeChangeListener (SGPropertyChangeListener * listener) { + if (_listeners == 0) + return; vector::iterator it = find(_listeners->begin(), _listeners->end(), listener); if (it != _listeners->end()) {