Merge pull request #267 from giact/develop

Fixed two segfaults in code editor and debugger