reset java weak ref when LinphoneChatMessage is finalized.

This commit is contained in:
Simon Morlat 2016-10-18 16:32:44 +02:00
parent 2af20c28af
commit 54b1500c76

View file

@ -4544,6 +4544,7 @@ extern "C" void Java_org_linphone_core_LinphoneChatMessageImpl_setListener(JNIEn
extern "C" void Java_org_linphone_core_LinphoneChatMessageImpl_unref(JNIEnv* env
,jobject thiz
,jlong ptr) {
linphone_chat_message_set_user_data((LinphoneChatMessage*)ptr, NULL);
linphone_chat_message_unref((LinphoneChatMessage*)ptr);
}