src: fixed has leaked window crash