Fix important Native thread issue with multiple env
This commit is contained in:
parent
b53d66de7c
commit
b70538d31a
2 changed files with 2 additions and 1 deletions
|
@ -360,7 +360,8 @@ void loadJniBinaryRead() {
|
|||
|
||||
extern "C" JNIEXPORT void JNICALL Java_net_osmand_plus_render_NativeOsmandLibrary_deleteSearchResult(JNIEnv* ienv,
|
||||
jobject obj, jint searchResult) {
|
||||
setGlobalEnv(ienv);
|
||||
// DO NOT DO IT it can leads to messing thread that is not allowed
|
||||
// setGlobalEnv(ienv);
|
||||
SearchResult* result = (SearchResult*) searchResult;
|
||||
if(result != NULL){
|
||||
delete result;
|
||||
|
|
Binary file not shown.
Loading…
Reference in a new issue