Skip to content

Commit

Permalink
Adding memory management
Browse files Browse the repository at this point in the history
  • Loading branch information
Yomguithereal committed Mar 8, 2021
1 parent 6f5b700 commit 607d42b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/fiber/fiber.js
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ const createBlessedRenderer = function (blessed) {

screen.once('destroy', () => {
BlessedReconciler.updateContainer(null, root, null);
roots.delete(screen);
});
}

Expand Down

0 comments on commit 607d42b

Please sign in to comment.