return network_map_source;
}
-const gchar *
+gchar *
champlain_network_map_source_get_tile_uri (ChamplainNetworkMapSource *network_map_source,
gint x,
gint y,
g_string_append (ret, value);
}
else
- g_string_append (ret, token);
+ g_string_append (ret, g_strdup (token));
token = tokens[++i];
}
else if (!priv->offline)
{
SoupMessage *msg;
- const gchar *uri;
+ gchar *uri;
FileLoadedCallbackContext *ctx = g_new0 (FileLoadedCallbackContext, 1);
ctx->view = view;
ctx->zoom_level = zoom_level;
soup_session_queue_message (soup_session, msg,
file_loaded_cb,
ctx);
+ g_free (uri);
}
/* If a tile is neither in cache or can be fetched, do nothing, it'll show up
* as empty
ChamplainMapSource * champlain_map_source_new_oam (void);
ChamplainMapSource * champlain_map_source_new_mff_relief (void);
-const gchar * champlain_network_map_source_get_tile_uri (ChamplainNetworkMapSource *source,
+gchar * champlain_network_map_source_get_tile_uri (ChamplainNetworkMapSource *source,
gint x, gint y, gint z);
void champlain_network_map_source_set_tile_uri (ChamplainNetworkMapSource *network_map_source,