summaryrefslogtreecommitdiff
path: root/navit/map.c
diff options
context:
space:
mode:
authormdankov <mdankov@ffa7fe5e-494d-0410-b361-a75ebd5db220>2012-03-25 10:06:56 +0000
committermdankov <mdankov@ffa7fe5e-494d-0410-b361-a75ebd5db220>2012-03-25 10:06:56 +0000
commitdda36edebb7caed6a21fe05b8141d6d837a12717 (patch)
tree4a4ad250dd9f5ba3db9c5ccad22a3d70a17257fd /navit/map.c
parent22d63d0a9d9e39f2c5fad5ecb8058bc4e429d0ad (diff)
downloadnavit-dda36edebb7caed6a21fe05b8141d6d837a12717.tar.gz
Fix:Core:Allow not found maps to be ignored. Quickfix for #1023.
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@4993 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/map.c')
-rw-r--r--navit/map.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/navit/map.c b/navit/map.c
index a48ea8fbe..e437f4d8a 100644
--- a/navit/map.c
+++ b/navit/map.c
@@ -281,6 +281,8 @@ map_destroy(struct map *m)
void
map_unref(struct map *m)
{
+ if(!m)
+ return;
m->refcount--;
if (m->refcount <= 0)
map_destroy(m);