Hello devs,
I understand that if an UI component has an added event listener and even if it is removed from its parent - the memory held by the component will not be released. Now the question is if I have a button declared in mxml like this <mx:Button id="testBtn" click="handleClick()"/> In this case do I need to remove the click event listener like this - testBtn.removeEventListener(MouseEvent.CLICK,handleClick); or just removing the button from the parent will take care of this?