Note that there are some explanatory texts on larger screens.

plurals
  1. POabandoned memory problems with the heap
    primarykey
    data
    text
    <p>I am trying to learn a bit about the instruments panel in Xcode. I am using ARC. When checking allocations I have been coming up with some abandoned memory it issues. The picture below depicts code from my prepareForSegue method. Every time I tap to perform the segue, memory is allocated and never released. So if I go back and forth between the two viewControllers, the memory keeps climbing and eventually terminates the app. I used the tools to narrow down the problems in the code but am unsure where to go from here. I have seen several examples online about how to identify the problem but not about how to resolve it. So my question is, what is going on here that is causing the app to not release the memory? </p> <p><img src="https://i.stack.imgur.com/CgY3K.png" alt="prepareForSegue method"></p> <p>properties for viewController 1:</p> <pre><code>@property (nonatomic, retain) NSMutableArray *recAlbumsArray; @property (nonatomic, retain) NSMutableArray *titlesArray; @property (nonatomic, retain) NSMutableArray *timersArray; @property (nonatomic, retain) NSMutableArray *albumsArray; @property (nonatomic, retain) NSMutableArray *imagesArray; @property (nonatomic, retain) NSMutableArray *objsIdArray; @property (nonatomic, retain) NSArray *imagesDataArray; @property (nonatomic, weak) NSArray *recAlbumData; @property (nonatomic, weak) NSArray *albumData; @property (nonatomic, weak) NSString *albumTitle; @property (nonatomic, weak) NSString *objId; </code></pre> <p>properties for viewController 2:</p> <pre><code>@property (nonatomic, retain) NSMutableArray *album; @property (nonatomic, weak) NSString *title; @property (nonatomic, weak) NSString *albumRef; @property (nonatomic, weak) NSString *objId; </code></pre> <p>I have tried setting all the properties to nil in a viewDidDisappear method and also tried removing the 1st viewController from the viewController array hierarchy but nothing changed.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload