mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-20 23:52:40 +08:00
[android] Fix local reference table overflow when use callStaticStringMethod (#12621)
This commit is contained in:
@@ -379,6 +379,9 @@ public:
|
||||
CLEAR_EXCEPTON(t.env);
|
||||
ret = cc::JniHelper::jstring2string(jret);
|
||||
ccDeleteLocalRef(t.env, jret);
|
||||
#ifndef __OHOS__
|
||||
ccDeleteLocalRef(t.env, t.classID);
|
||||
#endif
|
||||
deleteLocalRefs(t.env, &localRefs);
|
||||
} else {
|
||||
reportError(className, methodName, signature);
|
||||
|
||||
Reference in New Issue
Block a user