mapcontroller: Fix memory leak in the exit path

Merge request reports

Loading