fix android build failure issue with WITH_CLOUD=1 and secure mode
authorjihwan.seo <jihwan.seo@samsung.com>
Thu, 6 Oct 2016 06:21:16 +0000 (15:21 +0900)
committerAshok Babu Channa <ashok.channa@samsung.com>
Mon, 10 Oct 2016 12:06:02 +0000 (12:06 +0000)
Change-Id: I1f1cca166866fda08e2d644032eca7e721bf8db8
Signed-off-by: jihwan.seo <jihwan.seo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/12861
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
android/android_api/base/jni/JniOcStack.cpp

index f87cd1a..03cb4ad 100644 (file)
@@ -683,7 +683,7 @@ JNIEXPORT void JNICALL JNI_OnUnload(JavaVM *vm, void *reserved)
 #ifdef WITH_CLOUD
         env->DeleteGlobalRef(g_cls_OcAccountManager);
 #endif
-#ifdef WITH_CLOUD
+#ifdef __WITH_TLS__
         env->DeleteGlobalRef(g_cls_OcCloudProvisioning);
 #endif
         env->DeleteGlobalRef(g_cls_OcOicSecAcl);