src: fixed with leaked window on orientation change