Tasks kanban: memory leak fix