X-Git-Url: https://git.street.me.uk/andy/viking.git/blobdiff_plain/4c77d5e0aec3c7aab32965ca4e02abb17bb6108f..80471a6a905e00bf80ad04fa2061f88ea81f15cb:/src/expedia.c?ds=inline diff --git a/src/expedia.c b/src/expedia.c index e7a41699..c3363f17 100644 --- a/src/expedia.c +++ b/src/expedia.c @@ -41,7 +41,7 @@ static gboolean expedia_coord_to_mapcoord ( const VikCoord *src, gdouble xzoom, static void expedia_mapcoord_to_center_coord ( MapCoord *src, VikCoord *dest ); static int expedia_download ( MapCoord *src, const gchar *dest_fn ); -static DownloadOptions expedia_options = { NULL, 2 }; +static DownloadOptions expedia_options = { NULL, 2, a_check_map_file }; void expedia_init() { VikMapsLayer_MapType map_type = { 5, 0, 0, VIK_VIEWPORT_DRAWMODE_EXPEDIA, expedia_coord_to_mapcoord, expedia_mapcoord_to_center_coord, expedia_download }; @@ -184,6 +184,7 @@ static int expedia_download ( MapCoord *src, const gchar *dest_fn ) if ((res = a_http_download_get_url ( EXPEDIA_SITE, uri, dest_fn, &expedia_options )) == 0) /* All OK */ expedia_snip ( dest_fn ); + g_free(uri); return(res); }