Leak due to CreateImageRefFromTileData

70 Views Asked by At

does somebody know what CreateImageRefFromTileData is about? It seems to be related to MapKit because it's occuring in a UIViewController where I display a map with some location-pins. Nothing more.

But I've no further guess where it's more deeply located.

Can somebody help me?

Update:

Here are some pictures showing the leak description.

General Overview

Detailed View

Responsible Caller

1

There are 1 best solutions below

2
SVD On

When you run the leak detector, it shows you the place where the leaked object was allocated - you now should look make sure you deallocate (release) the image properly when you no longer need it.

Edit: if the leak is within a 3rd party library, there are two scenarios:

  • the leaked object is an internal object in the library, which you can't access. In this case if you don't have the source for the library, not much you can do (complain to the developer I suppose)

  • if the leaked object is something that the library returned to you, make sure you release that object properly. A useful technique for figuring out what happens is playing with the app while watching the leak analyzer after every operation you do in the app - this may help locating in which branch of your app the leak is.