summaryrefslogtreecommitdiff
path: root/navit/traffic.c
diff options
context:
space:
mode:
Diffstat (limited to 'navit/traffic.c')
-rw-r--r--navit/traffic.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/navit/traffic.c b/navit/traffic.c
index 8dc3a1645..7b4ca7612 100644
--- a/navit/traffic.c
+++ b/navit/traffic.c
@@ -954,10 +954,6 @@ static struct map_rect_priv * tm_rect_new(struct map_priv *priv, struct map_sele
int dirty = 0;
dbg(lvl_debug,"enter");
- mr=g_new0(struct map_rect_priv, 1);
- mr->mpriv = priv;
- mr->next_item = priv->items;
- /* all other pointers are initially NULL */
/* lazy location matching */
if (sel != NULL)
@@ -990,6 +986,12 @@ static struct map_rect_priv * tm_rect_new(struct map_priv *priv, struct map_sele
map_selection_destroy(msg_sel);
}
}
+
+ mr=g_new0(struct map_rect_priv, 1);
+ mr->mpriv = priv;
+ mr->next_item = priv->items;
+ /* all other pointers are initially NULL */
+
if (dirty)
/* dump message store if new messages have been received */
traffic_dump_messages_to_xml(priv->shared);