Fixed memory leak and removed duplicate calls to solWin.show().