Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix memory leaks #120

Merged
merged 1 commit into from
Apr 8, 2017
Merged

Fix memory leaks #120

merged 1 commit into from
Apr 8, 2017

Conversation

DenTelezhkin
Copy link
Contributor

Hey!

This PR fixes various memory leaks, that prevents several MapboxNavigationUI components from being deallocated.

Three of them are usual non-weak delegate suspects.

Two more are NSTimer instances retaining their target until invalidated. I chose to invalidate them in RouteViewController deinit, since after main controller deinit probably there's no use in them

@@ -262,7 +264,6 @@ public class RouteViewController: NavigationPulleyViewController {

extension RouteViewController: RouteTableViewHeaderViewDelegate {
func didTapCancel() {
voiceController = nil
Copy link
Contributor

Choose a reason for hiding this comment

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

🎉

@bsudekum
Copy link
Contributor

bsudekum commented Apr 8, 2017

@DenHeadless, looks good to me. @1ec5 have a second to give this a once over?

Copy link
Contributor

@1ec5 1ec5 left a comment

Choose a reason for hiding this comment

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

Thank you for this PR! Everything looks good to go.

@1ec5 1ec5 merged commit 857a574 into mapbox:master Apr 8, 2017
wishtrip-dev pushed a commit to wishtrip-dev/mapbox-navigation-ios that referenced this pull request Feb 28, 2018
Mapbox iOS SDK v3.5.0, OHHTTPStubs master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants