Fix memory leaks when closing SlideMenu window