Minor memory leak fixed

Memory leak in SWizard fixed