Fix memory leaks on opening and closing a project
Fix double free on closing open project
Switched from delete() to destroyObj() in NewProject and SyntaxHighlighter