Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Conversation

speigg
Copy link
Contributor

@speigg speigg commented Apr 29, 2016

The LocationListenerImpl objects were not being created with ids (the LocationListenerImpl.new static method was never being called), and were also not being retained, meaning they could have been garbage collected at any moment. This PR fixes these problems.

speigg added 2 commits April 29, 2016 14:18
Assigning a locationListener to the localManager's delegate does not retain it.
We have to save our own reference to make sure it doesn't get garbage collected.
@hshristov
Copy link

Hi @speigg,

Thanks you for your contribution.

@hshristov hshristov merged commit 7c6de12 into NativeScript:master Jun 22, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants