summaryrefslogtreecommitdiff
path: root/navit/map/mg/tree.c
diff options
context:
space:
mode:
authormartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2009-06-01 16:07:39 +0000
committermartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2009-06-01 16:07:39 +0000
commitd1e9d486e52470c358eeb9f2876897fdd53aba57 (patch)
treeded59d29b0abda2e20e9ae29c839d06053376b42 /navit/map/mg/tree.c
parent5cd70e21aebbab2d430a508e94e01c73f8574971 (diff)
downloadnavit-d1e9d486e52470c358eeb9f2876897fdd53aba57.tar.gz
Add:Core:Work on housenumber search
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@2300 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/map/mg/tree.c')
-rw-r--r--navit/map/mg/tree.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/navit/map/mg/tree.c b/navit/map/mg/tree.c
index 695b401a1..0c2a4bb19 100644
--- a/navit/map/mg/tree.c
+++ b/navit/map/mg/tree.c
@@ -259,5 +259,6 @@ tree_search_init(char *dirname, char *filename, struct tree_search *ts, int offs
void
tree_search_free(struct tree_search *ts)
{
- file_destroy(ts->f);
+ if (ts->f)
+ file_destroy(ts->f);
}