load->data->bil = _load_bil(load->path);
if (!load->data->bil) {
g_remove(load->path);
+ g_free(load->data);
g_free(load->path);
g_free(load);
return;
{
GisPluginElev *self = _self;
g_debug("GisPluginElev: _free_tile: %p", tile->data);
- g_idle_add_full(G_PRIORITY_LOW, _free_tile_cb, tile->data, NULL);
+ if (tile->data)
+ g_idle_add_full(G_PRIORITY_LOW, _free_tile_cb, tile->data, NULL);
}
static gpointer _update_tiles(gpointer _self)
self->mutex = g_mutex_new();
self->tiles = gis_tile_new(NULL, NORTH, SOUTH, EAST, WEST);
self->wms = gis_wms_new(
- "http://www.nasa.network.com/srtm", "srtm30", "application/bil",
+ "http://www.nasa.network.com/elev", "srtm30", "application/bil",
"srtm/", "bil", TILE_WIDTH, TILE_HEIGHT);
}
static void gis_plugin_elev_dispose(GObject *gobject)