From: mfranz Date: Wed, 24 May 2006 10:16:09 +0000 (+0000) Subject: whoops, sorry (Yes, it *was* tested, but then I made another "trivial" X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c815f708317a9bf6e28ecb314ecea7d075199d42;p=simgear.git whoops, sorry (Yes, it *was* tested, but then I made another "trivial" change and ...) --- diff --git a/simgear/props/props.cxx b/simgear/props/props.cxx index 90efffed..a04f90ca 100644 --- a/simgear/props/props.cxx +++ b/simgear/props/props.cxx @@ -758,8 +758,9 @@ SGPropertyNode::~SGPropertyNode () clearValue(); if (_listeners) { - for (unsigned i = 0; i < _listeners.size(); ++i) - _listeners[i]->unregister_property(this); + vector::iterator it; + for (it = _listeners->begin(); it != _listeners->end(); ++it) + (*it)->unregister_property(this); delete _listeners; } }