summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormvglasow <michael -at- vonglasow.com>2020-08-13 19:09:39 +0200
committermvglasow <michael -at- vonglasow.com>2020-08-13 19:09:39 +0200
commit26594f97de07b91ca9e462262e00485bc0bc6b09 (patch)
treef23b76fd0022e148771f6ed3ec88b982eebfb43b
parent55e029700cf7860e8a1f4cfed894f096b9ba9c38 (diff)
downloadnavit-26594f97de07b91ca9e462262e00485bc0bc6b09.tar.gz
Fix:core:Fix invalid pointer which would cause unpredictable crashes
Signed-off-by: mvglasow <michael -at- vonglasow.com>
-rw-r--r--navit/navit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/navit/navit.c b/navit/navit.c
index 709bcb58a..dc5fb8fdb 100644
--- a/navit/navit.c
+++ b/navit/navit.c
@@ -3727,7 +3727,7 @@ void navit_destroy(struct navit *this_) {
while (maps) {
attr.type = attr_map;
attr.u.map = maps->data;
- mapset_remove_attr(this_->mapsets, &attr);
+ mapset_remove_attr(mapsets->data, &attr);
attr_free_content(&attr);
maps = g_list_next(maps);
}