diff options
author | woglinde <woglinde@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2011-05-01 22:09:08 +0000 |
---|---|---|
committer | woglinde <woglinde@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2011-05-01 22:09:08 +0000 |
commit | be0f6f1d28972d30c9d2f51a15c53c51b447e727 (patch) | |
tree | 04d7e4315ad0f13d7a50b75632c5747679d78efe /navit/map.c | |
parent | 9e693288ec2981a0753f8ff2df61860526321d12 (diff) | |
download | navit-be0f6f1d28972d30c9d2f51a15c53c51b447e727.tar.gz |
Fix:core:Check for nullpointer before remove refcounts in map_destroy
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@4460 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/map.c')
-rw-r--r-- | navit/map.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/navit/map.c b/navit/map.c index d8ca5e363..94df1e9f2 100644 --- a/navit/map.c +++ b/navit/map.c @@ -276,6 +276,9 @@ map_destroy_do(struct map *m) void map_destroy(struct map *m) { + if (!m) + return; + if(0<m->refcount) { m->refcount--; } |