Fix leak caused by TUINSWIndow