generator icon indicating copy to clipboard operation
generator copied to clipboard

fix: prevent potential memory leak by properly removing watcher references

Open Aryan4884 opened this issue 1 year ago • 5 comments

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.

Aryan4884 avatar Oct 18 '24 17:10 Aryan4884