From c815f708317a9bf6e28ecb314ecea7d075199d42 Mon Sep 17 00:00:00 2001 From: mfranz Date: Wed, 24 May 2006 10:16:09 +0000 Subject: [PATCH] whoops, sorry (Yes, it *was* tested, but then I made another "trivial" change and ...) --- simgear/props/props.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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; } } -- 2.39.5