File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
Win a copy of
The Mikado Method
this week in the
Agile and other Processes
forum!
JavaRanch
»
Java Forums
»
Mobile
»
iOS
Author
stringwithformat leak when add this string in an array
Rizwan Lateef
Greenhorn
Joined: Aug 11, 2010
Posts: 7
posted
Nov 03, 2010 03:33:10
0
when i add [NSString stringWithFormat:@"abc"]
string
in array leak tool gives me a leak there, can any body tell me the solution?
Mark Spritzler
ranger
Sheriff
Joined: Feb 05, 2001
Posts: 17234
1
I like...
posted
Nov 03, 2010 18:00:55
0
Actually, I think it will always be a leak. And there are places that say it is better to use [[NSString alloc] initWithFormat] instead and remember to call release yourself.
Mark
Perfect World Programming, LLC
-
Two Laptop Bag
-
Tube Organizer
How to Ask Questions the Smart Way FAQ
I agree. Here's the link:
http://zeroturnaround.com/jrebel
- it saves me about five hours per week
subject: stringwithformat leak when add this string in an array
Similar Threads
Memory leak
Collection toArray( T[ ] ) method
No AutoBoxing when adding int to an arraylist
Memory leaks in Java
WA #1.....word association
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter