diff options
author | martin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2007-12-28 10:04:39 +0000 |
---|---|---|
committer | martin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2007-12-28 10:04:39 +0000 |
commit | d0a013d6282d31eb67db31c509a1db49afa7a374 (patch) | |
tree | 3e8eae788657a5b32dae723fc32d38181785ff53 /map.c | |
parent | 8ed6909efe762ab6e5d58dfb1db03d81eb8dae31 (diff) | |
download | navit-svn-d0a013d6282d31eb67db31c509a1db49afa7a374.tar.gz |
Add:Core:Better support for route map
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit/src@674 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'map.c')
-rw-r--r-- | map.c | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -10,6 +10,15 @@ #include "plugin.h" #include "country.h" + +struct map { + struct map_methods meth; + struct map_priv *priv; + char *type; + char *filename; + int active; +}; + struct map_rect { struct map *m; struct map_rect_priv *priv; @@ -106,6 +115,10 @@ map_rect_new(struct map *m, struct map_selection *sel) mr=g_new0(struct map_rect, 1); mr->m=m; mr->priv=m->meth.map_rect_new(m->priv, sel); + if (! mr->priv) { + g_free(mr); + mr=NULL; + } return mr; } |