Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
🚰 Menu component listener leak #761
Hypothesis: The menu when opened and closed does not clean up all of the events that it registers for, thus causing a leak
*visit http://www.getmdl.io/components/index.html#menus-section in chrome canary in an incognito window with no profile
The profiler shows us a step ladder of listener registrations (that never drops), over 5 iterations we can see that there are 15 new event registrations.
Looking at the heap comparison
note how that 15 shows up for us :) it looks like here
I have not investigated the menu code in depth for how the menu works, so this might be super obvious to you guys for how to fix (or even that this might not be an issue), if this is not enough info to go off of let me know and I can continue the dive.