* Mathias Froehlich -- Sunday 07 June 2009:
> Modified Files:
>       NasalSys.cxx 
> Log Message:
> No need to zero the _props variable.
> This reference is released by the SGSharedPtr destructor anyway.
>  
> Modified Files:
>       src/Scripting/NasalSys.cxx 

> -    _props = 0;

Yes, but it's released when the SGPropertyNode_ptr is destructed,
which happens in the ~FGNasalModelData() destructor, and that can
be hours later. By setting it to 0 already here, we could save the
memory for a potentially large animation property tree (as soon
as cmdarg() released its reference as well).

Do I miss something?

m.

------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to