The pointer variables gps_display, gps_track_recorder, compass_display and gps_marker_display are all zero-initialized in the constructor. In MapEditorController::detach() all of their associated objects are deleted and the variables are set to nullptr. In the destructor however the gps_marker_display object was not deleted whereas the other three objects were.
The pointer variables
gps_display
,gps_track_recorder
,compass_display
andgps_marker_display
are all zero-initialized in the constructor. InMapEditorController::detach()
all of their associated objects are deleted and the variables are set to nullptr. In the destructor however thegps_marker_display
object was not deleted whereas the other three objects were.