From 42582a3a0899e3fe307c5cddcb44f999cc2de35f Mon Sep 17 00:00:00 2001 From: Kaj-Michael Lang Date: Wed, 27 Feb 2008 18:28:18 +0200 Subject: [PATCH] Use route_init/route_deinit to clear the path --- src/route.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/route.c b/src/route.c index 1073a3c..3144f60 100644 --- a/src/route.c +++ b/src/route.c @@ -72,8 +72,8 @@ confirm = hildon_note_new_confirmation(GTK_WINDOW(_window), _("Really clear the if (GTK_RESPONSE_OK == gtk_dialog_run(GTK_DIALOG(confirm))) { cancel_autoroute(FALSE); - MACRO_PATH_FREE(_route); - MACRO_PATH_INIT(_route); + route_deinit(); + route_init(); route_find_nearest_point(); map_force_redraw(); } -- 2.39.5