Skip to content

Commit

Permalink
deleting J objects
Browse files Browse the repository at this point in the history
  • Loading branch information
morisgateno-appsflyer committed Mar 7, 2024
1 parent 1c61190 commit 607eb79
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Classes/AppsFlyer/AppsFlyerXAndroid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,9 @@ void AppsFlyerXAndroid::setConsentData(const AppsFlyerXConsent& consentData){

jniGetInstance.env->CallVoidMethod(afInstance, methodId, resultConsent);

jniGetInstance.env->DeleteLocalRef(resultConsent);
jniGetInstance.env->DeleteLocalRef(afInstance);
jniGetInstance.env->DeleteLocalRef(jniGetInstance.classID);
} else {
CCLOGERROR("%s", "'AppsFlyerLib' is not loaded");
}
Expand Down

0 comments on commit 607eb79

Please sign in to comment.