Adds idea/clion dir to .gitignore
Fixes a possible memory leak