Memory leaks with AGSTiledMapServiceLayer ?

2368
1
Jump to solution
11-20-2014 02:01 AM
ØyvindIdland
New Contributor III

Hi,

I am having some trouble with a view controller that retains a lot of memory after popping, and never deallocates.

viewDidDisappear() is fired, but dealloc() is never called.

Turns out, when I skip adding the AGSTiledMapServiceLayer (created using [tiledMapServiceLayerWithURL], everything works as expected and dealloc() is called on my view-controller.. and memory is released.

Anybody else experienced this ?

I am currently using Runtime 10.2.4.

0 Kudos
1 Solution

Accepted Solutions
ØyvindIdland
New Contributor III

Turned out that the leak was caused by some ugly code executed during mapViewDidLoad().

Problem solved !

View solution in original post

0 Kudos
1 Reply
ØyvindIdland
New Contributor III

Turned out that the leak was caused by some ugly code executed during mapViewDidLoad().

Problem solved !

0 Kudos