Skip to content
This repository has been archived by the owner on May 9, 2018. It is now read-only.

* Fixed some retain cycles that were preventing the RMMapView from deallocating #248

Closed
wants to merge 2 commits into from

Conversation

onato
Copy link
Contributor

@onato onato commented May 6, 2013

There seem to be quite a few memory leaks caused by retain cycles.

Outdooractive/route-me#102
#221

I have fixed a few of these with this commit. You can reproduce the leak easily by pushing a view controller with a RMMapView onto a Navigation Controller and popping it off again.

@incanus incanus added bug and removed performance labels Feb 19, 2014
@RyanCopley
Copy link
Contributor

+1, just noticed these also.

});
}

[_zoomDelegateQueue setSuspended:YES];

if ([_zoomDelegateQueue operationCount] == 0)
if ([_zoomDelegateQueue operationCount] == 0 && _delegateHasAfterMapZoom)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These two changes related to checking the delegate before queueing the block have me concerned since they change the actual behavior order when trying to just get rid of a retain cycles. Will adapt.

incanus added a commit that referenced this pull request Mar 17, 2014
@incanus
Copy link
Contributor

incanus commented Mar 17, 2014

These fixes have been incorporated.

@incanus incanus closed this Mar 17, 2014
@vzqwer
Copy link

vzqwer commented Mar 18, 2014

Thanks a lot.

dcacenabes referenced this pull request in davididntt/mapbox-ios-sdk Apr 11, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants