[evgeny, szilveszter] removing memory leaks
[evgeny, szilveszter] fixed memory leaks