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

Only clear when set #117

Merged
merged 1 commit into from
Apr 13, 2021
Merged

Conversation

brysem
Copy link

@brysem brysem commented Apr 13, 2021

Fixes a crash when self->enumerator_ is not set

@cla-bot cla-bot bot added the cla: yes label Apr 13, 2021
@rigor789 rigor789 merged commit 541721d into NativeScript:fix/memory-leaks Apr 13, 2021
NathanWalker pushed a commit that referenced this pull request Jul 3, 2021
* fix: don't allocate persistent empty objects

* fix: Blocks memory leak (#100)

* feat: drop custom WeakRef implementation & use built-in

* fix: free allocated memory in ReferenceWrapper

* fix: DictionaryAdapter Hanging References (#114)

* Clean up hanging references before deallocating

Reduces total dictionary related memory leaks by 36%

* fix

* chore: more leak fixes

* fix: only release enumerator_ when set (#117)

* fix: handle methods with pointer type params

fixes #109

* fix: referenceWrapper memory leak & CString leak

* refactor: ReferenceWrapper dispose to be managed internally

* fix: pre-allocate memory even for empty values

* fix: undo invalid fix (needs a different way)

Co-authored-by: Darin Dimitrov <darin.dimitrov@gmail.com>
Co-authored-by: Bryse Meijer <brysem@users.noreply.github.com>
Co-authored-by: logikgate <nick.fredricks@flypaper.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants