fixed memory leak + added header file to includes in cmake file
Merge pull request #242 from holzers/master

fixed memory leak + added header file to includes in cmake file