From b3692d06f086ecf688b7d987dbced57fd9f13ff6 Mon Sep 17 00:00:00 2001 From: "ivan.obodovskyi" Date: Thu, 7 Nov 2024 18:35:47 +0200 Subject: [PATCH] delete local ref fixes --- Classes/AppsFlyer/AppsFlyerXAndroid.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Classes/AppsFlyer/AppsFlyerXAndroid.cpp b/Classes/AppsFlyer/AppsFlyerXAndroid.cpp index 7347077..34369e6 100644 --- a/Classes/AppsFlyer/AppsFlyerXAndroid.cpp +++ b/Classes/AppsFlyer/AppsFlyerXAndroid.cpp @@ -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); } }