From 19acd4a53a5fc325d3163b5396149739a928294e Mon Sep 17 00:00:00 2001 From: Jehan Monnier Date: Mon, 2 Dec 2013 15:53:04 +0100 Subject: [PATCH] align rootca path for android --- tester/liblinphone_tester.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tester/liblinphone_tester.c b/tester/liblinphone_tester.c index 6be3bd70b..3c0fe9635 100644 --- a/tester/liblinphone_tester.c +++ b/tester/liblinphone_tester.c @@ -107,11 +107,7 @@ static LinphoneCore* configure_lc_from(LinphoneCoreVTable* v_table, const char* lc = linphone_core_new(v_table,NULL,*filepath!='\0' ? filepath : NULL,NULL); sal_enable_test_features(lc->sal,TRUE); -#ifndef ANDROID snprintf(rootcapath, sizeof(rootcapath), "%s/certificates/cn/cacert.pem", path); -#else - snprintf(rootcapath, sizeof(rootcapath), "%s/cacert.pem", path); -#endif linphone_core_set_root_ca(lc,rootcapath); sprintf(dnsuserhostspath, "%s/%s", path, userhostsfile); @@ -525,6 +521,7 @@ void cunit_android_trace_handler(int level, const char *fmt, va_list args) { jclass cls = (*env)->GetObjectClass(env, current_obj); jmethodID method = (*env)->GetMethodID(env, cls, "printLog", "(ILjava/lang/String;)V"); (*env)->CallVoidMethod(env, current_obj, method, javaLevel, javaString); + (*env)->DeleteLocalRef(env,javaString); } JNIEXPORT