From 456d032b7c71e162ca65207f7f712312591f7aff Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Sat, 28 Apr 2012 15:26:56 +0200 Subject: [PATCH] Fix memory leak --- OsmAnd/jni/osmand/binaryRead.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/OsmAnd/jni/osmand/binaryRead.cpp b/OsmAnd/jni/osmand/binaryRead.cpp index 826ea74643..5dde595a89 100644 --- a/OsmAnd/jni/osmand/binaryRead.cpp +++ b/OsmAnd/jni/osmand/binaryRead.cpp @@ -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; } }