From: Kaj-Michael Lang Date: Wed, 27 Feb 2008 16:28:18 +0000 (+0200) Subject: Use route_init/route_deinit to clear the path X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=42582a3a0899e3fe307c5cddcb44f999cc2de35f;p=mapper Use route_init/route_deinit to clear the path --- 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(); }