From 8b9d704e01ac33d16972ad6ab71d8d6b350fa12e Mon Sep 17 00:00:00 2001 From: tegzed Date: Sat, 19 Mar 2011 22:22:12 +0000 Subject: Add:core: - Added reference counting map destruction mechanism - Added item creation function to the map interface git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@4370 ffa7fe5e-494d-0410-b361-a75ebd5db220 --- navit/route.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'navit/route.c') 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; } -- cgit v1.2.1