Skip to content

Commit

Permalink
Update due to merge conflicts, test memory leak issue
Browse files Browse the repository at this point in the history
  • Loading branch information
janechu committed Sep 24, 2024
1 parent 913c27e commit e2dd5c0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "Fix memory leak due to binding observers",
"packageName": "@microsoft/fast-foundation",
"email": "7282195+m-akinc@users.noreply.github.com",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
Expand Up @@ -704,6 +704,9 @@ class DesignTokenNode implements Behavior, Subscriber {
const parent = childToParent.get(this)!;
parent.removeChild(this);
}
for (const token of this.bindingObservers.keys()) {
this.tearDownBindingObserver(token);
}
}

/**
Expand Down

0 comments on commit e2dd5c0

Please sign in to comment.