add revgeo_free()

This commit is contained in:
Jan-Piet Mens 2016-02-23 17:30:48 +01:00
parent 4d7dcf2007
commit 49538f0b60
2 changed files with 7 additions and 0 deletions

6
geo.c
View File

@ -205,6 +205,12 @@ void revgeo_init()
curl = curl_easy_init();
}
void revgeo_free()
{
curl_easy_cleanup(curl);
curl = NULL;
}
#if 0
int main()
{

1
geo.h
View File

@ -3,3 +3,4 @@
JsonNode *revgeo(struct udata *ud, double lat, double lon, UT_string *addr, UT_string *cc);
void revgeo_init();
void revgeo_free();