Fix memory leak

This commit is contained in:
Victor Shcherb 2012-04-28 15:26:56 +02:00
parent be82fbdb47
commit 456d032b7c

View file

@ -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;
}
}