Made main.cpp file generate function cleaner.
Complete TestDiagramScene class
Fix unitialized variable usage and memory leaks in command line and ide.cpp
Fixed memory leak caused by destroyObj not working
Made the generated main file more user friendly.
Finished main.cpp auto expansion
Fixed an index out of bound in genetareMainFile()
Finished TestDiagramScene class
Fixed memory leaks in SyntaxHighLighter NewProject
Fix memory leaks on opening and closing a project
Merge pull request #5 from veaceslav/master

Memory leakz fix