-
Notifications
You must be signed in to change notification settings - Fork 947
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix local ref overflow in convert_utils #3901
Conversation
Hi, @1780243524. Thanks for your PR! 👏 🏷️ You can leave a comment in this PR with |
已收到您的邮件
|
After a quick scan, I have approved workflow to run.
🏷️ New commits in this PR would not be tested automatically until this pull request is reviewed by our collaborators. |
@@ -346,7 +347,9 @@ std::tuple<bool, std::string, jobject> ConvertUtils::ToHippyMap(const std::share | |||
j_env->DeleteLocalRef(key_j_obj); | |||
j_env->DeleteLocalRef(value_j_obj); | |||
} | |||
return std::make_tuple(true, "", obj); | |||
auto tuple = std::make_tuple(true, "", obj); | |||
j_env->DeleteLocalRef(obj); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
obj外面用,别deleteRef
@@ -366,7 +369,9 @@ std::tuple<bool, std::string, jobject> ConvertUtils::ToHippyArray(const std::sha | |||
JNIEnvironment::ClearJEnvException(j_env); | |||
j_env->DeleteLocalRef(j_obj); | |||
} | |||
return std::make_tuple(true, "", obj); | |||
auto tuple = std::make_tuple(true, "", obj); | |||
j_env->DeleteLocalRef(obj); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
问题同上
return std::make_tuple(true, "", result); | ||
auto tuple = std::make_tuple(true, "", result); | ||
if (result) { | ||
env->DeleteLocalRef(result); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
问题同上
🎉 It seems that this pull request has been approved by all required reviewers. But it has more than one normal commit, I will notify admin team member to merge it manually, please wait a moment.
|
After a quick scan, I have approved workflow to run.
|
Before submitting a new pull request, please make sure: