Fixed memory leak and formatting
Merge branch 'c-dev' of git@github.com:tekinozbek/ods.git into c-dev