Deallocate windows in char gen properly

I think it's necessary to delete all created windows using delwin(...).