]> err.no Git - mapper/commitdiff
Call map_poi_deinit and free _gps struct
authorKaj-Michael Lang <milang@tal.org>
Wed, 23 Jan 2008 17:58:12 +0000 (19:58 +0200)
committerKaj-Michael Lang <milang@tal.org>
Wed, 23 Jan 2008 17:58:12 +0000 (19:58 +0200)
src/mapper.c

index 759467f98c2eff9f1d9c1ad9d7191a65e30e0a23..dca977ce92b43fe61751861703b4ec708fc4a5a6 100644 (file)
@@ -121,11 +121,13 @@ mapper_destroy(void)
 {
 config_save();
 config_save_repo();
-gps_disconnect(_gps);
 map_download_deinit();
+map_poi_deinit();
 #if defined (WITH_GST) && defined (WITH_ESPEAK)
 speak_deinit();
 #endif
+gps_disconnect(_gps);
+gps_free(_gps);
 osm_deinit();
 db_close(&_db);
 track_deinit();