fix mem leakage and discussions of MR !569

Implement things from my review of !569 (merged)

Edited by m.puchner

Merge request reports

Loading