Re: [android-developers] Wierd memory leak

2010-10-06 Thread Daniel Drozdzewski
On Thursday, October 7, 2010, DanH wrote: > Yep, substring MAY (or may not) decide to avoid copying the characters > and simply keep a reference to the char array in the source String. A > smart substring implementation wouldn't do this if the result string > were quite short or the source string

Re: [android-developers] Wierd memory leak

2010-10-06 Thread Daniel Drozdzewski
On Thursday, October 7, 2010, DanH wrote: > Yep, substring MAY (or may not) decide to avoid copying the characters > and simply keep a reference to the char array in the source String. A > smart substring implementation wouldn't do this if the result string > were quite short or the source string

Re: [android-developers] Wierd memory leak

2010-10-06 Thread Daniel Drozdzewski
On Thursday, October 7, 2010, DanH wrote: > Yep, substring MAY (or may not) decide to avoid copying the characters > and simply keep a reference to the char array in the source String. A > smart substring implementation wouldn't do this if the result string > were quite short or the source string