Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

NSPlaceholderString Memory Leak with ARC

at the moment I develop a iOS App with ARC. The app is a storyboard application with two TableViewControllers.

The problem is, that instruments shows me a memory leak in the following case:

Start of the Application --> MainViewController loaded --> Home Button is pressed --> Local Notification appears --> App starts using the local notification --> AppDelegate get the navigation controller --> Calls function in MainViewController which load the 2. View Controller --> 2. View Controller is shown and User clicks on "Back".

At this point instruments shows me a memory leak:

Leaked Object | # | Address   | Size     | Responsible Library | ResponsibleFrame
__NSCFString  | 1 | 0xe40dd30 | 32 Bytes | Foundation          | -[NSPlaceholderString initWithFormat:locale:arguments:]

When I look into the Stack Trace I can't see any of my own function.

Did I make an mistake in my programming or is this a bug in the Apple Framework.

How can avoid the problem?

The Stack Trace

like image 323
Pacnos Avatar asked Mar 02 '14 09:03

Pacnos


1 Answers

I have received this kind of Leaks for NSPlaceholderString . But you can ignore that as it leaks because of Apple Framework and its of only 32 bytes .

like image 96
Nishith Sheth Avatar answered Oct 18 '22 10:10

Nishith Sheth