if (priv->location == NULL)
goto out;
- res = geocode_forward_search_finish (GEOCODE_OBJECT (source), result,
+ res = geocode_forward_search_finish (GEOCODE_FORWARD (source), result,
&error);
if (res == NULL)
DEBUG ("\t - Latitude: %f", loc->latitude);
DEBUG ("\t - Longitude: %f", loc->longitude);
- g_list_free_full (res, geocode_location_free);
+ g_list_free_full (res, (GDestroyNotify) geocode_location_free);
/* Copy remaning fields. LAT and LON were not defined so we won't overwrite
* the values we just set. */