]> git.mxchange.org Git - simgear.git/commitdiff
whoops, sorry (Yes, it *was* tested, but then I made another "trivial"
authormfranz <mfranz>
Wed, 24 May 2006 10:16:09 +0000 (10:16 +0000)
committermfranz <mfranz>
Wed, 24 May 2006 10:16:09 +0000 (10:16 +0000)
change and ...)

simgear/props/props.cxx

index 90efffed704cd2950b082f2ab38788d5ff8fa385..a04f90ca6d2504594b6eb3d51151e817af16dd24 100644 (file)
@@ -758,8 +758,9 @@ SGPropertyNode::~SGPropertyNode ()
   clearValue();
 
   if (_listeners) {
-    for (unsigned i = 0; i < _listeners.size(); ++i)
-      _listeners[i]->unregister_property(this);
+    vector<SGPropertyChangeListener*>::iterator it;
+    for (it = _listeners->begin(); it != _listeners->end(); ++it)
+      (*it)->unregister_property(this);
     delete _listeners;
   }
 }