Commit 5cde30da authored by Simon Morlat's avatar Simon Morlat

fix crash with ErrorInfoImpl due to missing symbols

parent e1123620
......@@ -7445,6 +7445,24 @@ JNIEXPORT jstring JNICALL Java_org_linphone_core_ErrorInfoImpl_getDetails(JNIEnv
return tmp ? env->NewStringUTF(tmp) : NULL;
}
/*
* Class: org_linphone_core_ErrorInfoImpl
* Method: ref
* Signature: (J);
*/
JNIEXPORT void JNICALL Java_org_linphone_core_ErrorInfoImpl_ref(JNIEnv *env, jobject jobj, jlong ei){
linphone_error_info_ref((LinphoneErrorInfo*)ei);
}
/*
* Class: org_linphone_core_ErrorInfoImpl
* Method: unref
* Signature: (J);
*/
JNIEXPORT void JNICALL Java_org_linphone_core_ErrorInfoImpl_unref(JNIEnv *env, jobject jobj, jlong ei){
linphone_error_info_unref((LinphoneErrorInfo*)ei);
}
#ifdef __cplusplus
}
#endif
......
......@@ -98,5 +98,10 @@ public class ErrorInfoImpl implements ErrorInfo {
return getWarnings();
}
protected void finalize() throws Throwable {
if (mNativePtr != 0){
unref(mNativePtr);
mNativePtr = 0;
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment