Skip to content

Commit

Permalink
Merge pull request #20025 from emberjs/chriskrycho/fix-memory-leak
Browse files Browse the repository at this point in the history
[BUGFIX LTS] remove bad `setFactoryFor` call
  • Loading branch information
chriskrycho authored Mar 16, 2022
2 parents 4fdb67c + 437108a commit 5f0ce0f
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions packages/@ember/-internals/container/lib/container.ts
Original file line number Diff line number Diff line change
Expand Up @@ -481,10 +481,6 @@ export class FactoryManager<T, C extends FactoryClass | object = FactoryClass> {
this.madeToString = undefined;
this.injections = undefined;
setFactoryFor(this, this);

if (isInstantiatable(container, fullName)) {
setFactoryFor(factory, this);
}
}

toString(): string {
Expand Down

0 comments on commit 5f0ce0f

Please sign in to comment.