[DF-2984] Fixed some memory leaks
Merge branch 'feature-integration-new-materials' of https://github.com/dava/dava.framework into feature-integration-new-materials