Ignore QT creator files
Fix memory leaks, errors uncovered by static analysis