On 22 Oct 2009, at 17:23, James Turner wrote: > without > using a copy to turn the temporary data from c_str() into something > that lives on the heap.
This is factually wrong, I realise - of course the data returned by c_str() *does* live on the heap, but that does't change the original issue that you shouldn't delete or free it; std::string owns the buffer and will clean it up if necessary - for example, the next time a non-const method is called on the original string. ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel