Closed Aryan4884 closed 2 weeks ago
Latest commit: bac1a168ebe70b0853832f444824d4eb55d9ad7a
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
Click here to learn what changesets are, and how to add one.
Click here if you're a maintainer who wants to add a changeset to this PR
@DhairyaMajmudar I have removed the extra formatting changes.
was this an issue coming from sonarcloud? of yes, please indicate it in description and provide to sonar report
Issues
0 New issues
0 Accepted issues
Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code
No, it is just an observational fix.
Description
This PR addresses a potential memory leak issue in the Watcher class. When a watcher is closed, the reference to the watcher was previously set to null but not removed from the this.watchers object. Over time, this could lead to unnecessary memory consumption/memory leak.