coding style fix
Merge github.com:veaceslav/WHC-IDE
Fixed sigsegv caused bu destroyObj(&ui)