From 98d0f33f8f9257a06307c661a455e2681cb12662 Mon Sep 17 00:00:00 2001 From: Frederic Bouvier Date: Sun, 7 Nov 2010 10:31:13 +0100 Subject: [PATCH] Don't crash on exit --- simgear/props/props.cxx | 2 ++ 1 file changed, 2 insertions(+) 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()) { -- 2.39.5