Skip to content
Snippets Groups Projects
Commit 77020281 authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

unix/modjni: call_method: Delete done local references in loop.

To avoid local ref table overflow.
parent f1a99233
Branches ch3/dual-core
No related tags found
No related merge requests found
...@@ -378,12 +378,16 @@ STATIC mp_obj_t call_method(jobject obj, const char *name, jarray methods, bool ...@@ -378,12 +378,16 @@ STATIC mp_obj_t call_method(jobject obj, const char *name, jarray methods, bool
} }
JJ(ReleaseStringUTFChars, name_o, decl); JJ(ReleaseStringUTFChars, name_o, decl);
JJ(DeleteLocalRef, name_o);
JJ(DeleteLocalRef, meth);
return ret; return ret;
} }
} }
next_method: next_method:
JJ(ReleaseStringUTFChars, name_o, decl); JJ(ReleaseStringUTFChars, name_o, decl);
JJ(DeleteLocalRef, name_o);
JJ(DeleteLocalRef, meth);
} }
nlr_raise(mp_obj_new_exception_msg_varg(&mp_type_TypeError, "method not found")); nlr_raise(mp_obj_new_exception_msg_varg(&mp_type_TypeError, "method not found"));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment