Skip to content
New issue

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

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

Already on GitHub? # to your account

Memory leak in event handlers #47

Open
luithefirst opened this issue Apr 26, 2023 · 0 comments
Open

Memory leak in event handlers #47

luithefirst opened this issue Apr 26, 2023 · 0 comments

Comments

@luithefirst
Copy link
Member

Here is a minimal example:
https://github.com/aardvark-platform/aardvark.media/blob/main/src/Scratch/29%20-%20Garbage%20Collection/App.fs

The onClick handler closure holds temporary data that is then pinned at this line forever:

state.handlers.[key] <- evt.serverSide

luithefirst added a commit that referenced this issue Apr 27, 2023
# Conflicts:
#	src/Aardvark.UI/Updater.fs
luithefirst added a commit that referenced this issue Apr 27, 2023
# Conflicts:
#	src/Aardvark.UI/Updater.fs
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant