DescriptionI have found 2 memory leaks.
1. Persistent handles were not being disposed (unlike the Local ones, they have to be disposed manually)
2. The garbage collection did not seem to be running. The Matches() calls produce the most garbage. I have put the GC in the GetElementHidingSelectors though, since that runs only once per page, and we don't want to be overly enthusiastic with the cleanups.
With these changes the memory usage stays more or less the same for me.
Patch Set 1 #
Total comments: 3
MessagesTotal messages: 3
|