summaryrefslogtreecommitdiff
path: root/navit/map.c
diff options
context:
space:
mode:
authormartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2009-01-23 00:23:34 +0000
committermartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2009-01-23 00:23:34 +0000
commite51cb5c13e618bedc5504c5ec1f710b9bcd66a4a (patch)
tree50679c85dbfabf4b92f2a298e4ce3ead442de582 /navit/map.c
parent3e80752bc4c8d8f831cd52eca469d2c83cb3ea97 (diff)
downloadnavit-e51cb5c13e618bedc5504c5ec1f710b9bcd66a4a.tar.gz
Add:Core:Made routing a background task
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@1965 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/map.c')
-rw-r--r--navit/map.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/navit/map.c b/navit/map.c
index eea5921b2..eb8d59a1c 100644
--- a/navit/map.c
+++ b/navit/map.c
@@ -335,8 +335,10 @@ map_rect_get_item_byid(struct map_rect *mr, int id_hi, int id_lo)
void
map_rect_destroy(struct map_rect *mr)
{
- mr->m->meth.map_rect_destroy(mr->priv);
- g_free(mr);
+ if (mr) {
+ mr->m->meth.map_rect_destroy(mr->priv);
+ g_free(mr);
+ }
}
/**