]> err.no Git - mapper/commitdiff
Use route_init/route_deinit to clear the path
authorKaj-Michael Lang <milang@onion.tal.org>
Wed, 27 Feb 2008 16:28:18 +0000 (18:28 +0200)
committerKaj-Michael Lang <milang@onion.tal.org>
Wed, 27 Feb 2008 16:28:18 +0000 (18:28 +0200)
src/route.c

index 1073a3c093f2e22a3a3a8d8b61f9624769e16ada..3144f60650eddf3a704738d10bfd6e6e75ed2d40 100644 (file)
@@ -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();
 }