-
Notifications
You must be signed in to change notification settings - Fork 6.7k
$uibTooltip creates massive memory leak #4604
Comments
@maxklenk Could you please check if that happens with the old non-prefixed version? And if possible with 0.13.4? Thank you. |
Sure: 0.14.1 |
Interesting, really interesting. I wonder if we introduced it with the prefix work. It is too much ask for 0.14.0 test? |
We did lot of tooltip changes in 0.14.0 so one of them is. Thoughts @wesleycho ? |
The memory leak was already introduces in the 0.14.0 release. |
Thanks, it is time to check out why and fix it 👍 |
I suspect this might be the cause: c08509a |
If that is indeed the cause, the fix should be simple - on the $scope |
@wesleycho Verified that does in fact fix the problem. I can fix this as part of PR #4597 if you would like? |
Separate PR if possible |
Yeah, separate always. |
Thank you for fixing this that fast! |
The tooltip was not being removed from the stackedMap resulting in a memeory leak. Tooltip will now be removed from the stackedMap in scope destroy function. Closes angular-ui#4610 Fixes angular-ui#4604
Each usage of
<span uib-tooltip="Hey"></span>
creates a memory leak on each state change withui-router
.When profiling the heap allocation of this plnkr memory leaks can be seen with tooltips:
and less when there are no tooltips
The text was updated successfully, but these errors were encountered: