Fixed memory leaks
Merge branch 'master' into sailfishos
Updated changelog