glob3mobile / g3m

The multiplatform advanced visualization framework
http://www.glob3mobile.com/
Other
116 stars 56 forks source link

Dealloc takes places too early [iOS] #213

Open mememto opened 7 years ago

mememto commented 7 years ago

Hi to everyone and thanks in advance. I have a new problem. Whenever i pop the viewcontroller where G3MWidget_iOS is placed, i get the following Log message after dealloc takes place:

Warning: WARNING: The TexturesHandler is destroyed, but the inner textures were not released.

Sometimes, if i pop the viewcontroller before all tiles are loaded in the current visible window an exception (EXC_BAD_ACCESS) is thrown in Dowloader_IOS.mm line 122:

void Downloader_iOS::removeDownloadingHandlerForNSURL(const NSURL* url) { [_lock lock]; [_downloadingHandlers removeObjectForKey:url]; [_lock unlock]; }

It seems that _lock._priv is NULL already.

So, I think that i'm not unloading all the stuff needed, or i'm not telling the SDK to stop download images. Any suggestion? Thanks in advance.