Fixed memory leak
Merge pull request #1 from okulak/develop

Fixed memory leak