Fix memory leak
This commit is contained in:
parent
be82fbdb47
commit
456d032b7c
1 changed files with 1 additions and 0 deletions
|
@ -361,6 +361,7 @@ extern "C" JNIEXPORT void JNICALL Java_net_osmand_plus_render_NativeOsmandLibrar
|
|||
// setGlobalJniEnv(ienv);
|
||||
SearchResult* result = (SearchResult*) searchResult;
|
||||
if(result != NULL){
|
||||
deleteObjects(result->result);
|
||||
delete result;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue