OpenOrienteering / mapper

OpenOrienteering Mapper is a software for creating maps for the orienteering sport.
https://www.openorienteering.org/apps/mapper/
GNU General Public License v3.0
404 stars 108 forks source link

MapEditorController: Delete object in destructor #2295

Open dl3sdo opened 1 week ago

dl3sdo commented 1 week ago

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.