mirror of
https://github.com/BertoldVdb/ZoneDetect.git
synced 2026-03-31 09:45:51 +00:00
add API function to free memory dynamically allocated by function ZDHelperSimpleLookupString
This commit is contained in:
parent
795b78da41
commit
8541dace7d
2 changed files with 6 additions and 0 deletions
|
|
@ -1249,3 +1249,8 @@ done:
|
|||
ZDFreeResults(result);
|
||||
return output;
|
||||
}
|
||||
|
||||
void ZDHelperSimpleLookupStringFree(char* str)
|
||||
{
|
||||
free(str);
|
||||
}
|
||||
|
|
@ -83,6 +83,7 @@ ZD_EXPORT const char *ZDGetErrorString(int errZD);
|
|||
ZD_EXPORT float* ZDPolygonToList(const ZoneDetect *library, uint32_t polygonId, size_t* length);
|
||||
|
||||
ZD_EXPORT char* ZDHelperSimpleLookupString(const ZoneDetect* library, float lat, float lon);
|
||||
ZD_EXPORT void ZDHelperSimpleLookupStringFree(char* str);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue