Mathias,

Selon Mathias Froehlich :

> --- 434,445 ----
>       if(_purgeListeners) {
>           _purgeListeners = false;
> !         map<int, FGNasalListener *>::iterator it;
> !         for(it = _listener.end(); it != _listener.end();) {
>               FGNasalListener *nl = it->second;

This line above is suspicious to me. How 'it' could be valid the first time when
initialized with end() ? The previous code was doing pre decrementation that I
don't see here.

>               if(nl->_dead) {
> !                 _listener.erase(it--);
>                   delete nl;
> +             } else {
> +               --it;
>               }
>           }

-Fred


--
Frédéric Bouvier
http://frfoto.free.fr                      Photo gallery - album photo
http://www.fotolia.fr/p/2278/partner/2278  Other photo gallery
http://fgsd.sourceforge.net/               FlightGear Scenery Designer

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to