Skip to content

Commit

Permalink
delete local ref fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
af-obodovskyi committed Nov 7, 2024
1 parent 907ed74 commit b3692d0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Classes/AppsFlyer/AppsFlyerXAndroid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -580,6 +580,10 @@ void AppsFlyerXAndroid::setAppsFlyerDevKey(const std::string &appsFlyerDevKey) {
jContext);

jniGetInstance.env->DeleteLocalRef(afInstance);
jniGetInstance.env->DeleteLocalRef(plugin);
jniGetInstance.env->DeleteLocalRef(version);
jniGetInstance.env->DeleteLocalRef(extensionObject);
jniGetInstance.env->DeleteLocalRef(jContext);
jniGetInstance.env->DeleteLocalRef(jniGetInstance.classID);
}
}
Expand Down

0 comments on commit b3692d0

Please sign in to comment.