File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes iOS and the fly likes stringwithformat leak when add this string in an array Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » iOS
Bookmark "stringwithformat leak when add this string in an array" Watch "stringwithformat leak when add this string in an array" New topic
Author

stringwithformat leak when add this string in an array

Rizwan Lateef
Greenhorn

Joined: Aug 11, 2010
Posts: 7
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: 17249
    
    6

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://aspose.com/file-tools
 
subject: stringwithformat leak when add this string in an array
 
Similar Threads
No AutoBoxing when adding int to an arraylist
Memory leaks in Java
Collection toArray( T[ ] ) method
Memory leak
WA #1.....word association