Skip to content
This repository was archived by the owner on Aug 5, 2022. It is now read-only.

[gpio] Fix to allow JerryScript to release onchange callback #755

Merged
merged 1 commit into from
Feb 22, 2017

Conversation

brianjjones
Copy link
Contributor

@brianjjones brianjjones commented Feb 17, 2017

This fixes the issue where GPIO was not having it's zjs_gpio_close function called because we still had a reference to the onchange function when jerry_cleanup gets called. Now the garbage collector will clean the GPIO object like it should.

@poussa
Copy link
Contributor

poussa commented Feb 20, 2017

Tested and works as expected. No more double (and more) callbacks. Fixes #745

+1

@grgustaf
Copy link
Contributor

+1

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.

3 participants