fix possible JNI local ref overflow

This commit is contained in:
Simon Morlat 2015-09-25 10:51:51 +02:00
parent e38fb7a661
commit f67f749dc8

View file

@ -862,6 +862,7 @@ public:
env->CallVoidMethod(callobj, lcData->callSetVideoStatsId, statsobj);
env->CallVoidMethod(lcData->listener, lcData->callStatsUpdatedId, lcData->core, callobj, statsobj);
handle_possible_java_exception(env, lcData->listener);
if (statsobj) env->DeleteLocalRef(statsobj);
}
static void transferStateChanged(LinphoneCore *lc, LinphoneCall *call, LinphoneCallState remote_call_state){
JNIEnv *env = 0;