diff options
Diffstat (limited to 'navit/route.c')
-rw-r--r-- | navit/route.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/navit/route.c b/navit/route.c index b0cf3a8df..21a205dff 100644 --- a/navit/route.c +++ b/navit/route.c @@ -3432,8 +3432,10 @@ route_get_map_helper(struct route *this_, struct map **map, char *type, char *de attrs[3]=&a_description; attrs[4]=NULL; - if (! *map) + if (! *map) { *map=map_new(NULL, attrs); + map_ref(*map); + } return *map; } |