Fixed memory leak in MiniMap.