summaryrefslogtreecommitdiff
path: root/map.c
diff options
context:
space:
mode:
authormartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2007-12-28 10:04:39 +0000
committermartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2007-12-28 10:04:39 +0000
commitd0a013d6282d31eb67db31c509a1db49afa7a374 (patch)
tree3e8eae788657a5b32dae723fc32d38181785ff53 /map.c
parent8ed6909efe762ab6e5d58dfb1db03d81eb8dae31 (diff)
downloadnavit-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.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/map.c b/map.c
index f7a872de..c86ad5b7 100644
--- a/map.c
+++ b/map.c
@@ -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;
}