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 leak when looking up non-instantiable objects from the owner #19820

Merged
merged 1 commit into from
Nov 3, 2021

Conversation

krisselden
Copy link
Contributor

@krisselden krisselden commented Nov 3, 2021

This PR fixes an issue introduced by #19467 which was merged into https://github.com/emberjs/ember.js/releases/tag/v3.27.0-beta.1

Before that PR moved where the back ref to the factory was created, it was only set if instantiate flag was true. After that PR moved where this was done, it would set the back ref on instantiate false, leaking the owner onto things like static template imports.

This isn't a big deal when there is only one app instance, but it is a problem in Fastboot and Acceptance tests.

@rwjblue rwjblue merged commit 7ffcb58 into master Nov 3, 2021
@rwjblue rwjblue deleted the fix-memory-leak branch November 3, 2021 17:31
@rwjblue rwjblue changed the title Fix memory leak. Fix memory leak when looking up non-instantiable objects from the owner Nov 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants