mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-23 22:28:07 +00:00
Test that LinphonePlayer has been instanciated while destroying
This commit is contained in:
parent
f7640d9e45
commit
61419585b4
1 changed files with 4 additions and 0 deletions
|
|
@ -5301,6 +5301,10 @@ extern "C" void Java_org_linphone_core_LinphonePlayerImpl_close(JNIEnv *env, job
|
|||
|
||||
extern "C" void Java_org_linphone_core_LinphonePlayerImpl_destroy(JNIEnv *env, jobject jobj, jlong playerPtr) {
|
||||
LinphonePlayer *player = (LinphonePlayer *)playerPtr;
|
||||
if(player == NULL) {
|
||||
ms_error("Cannot destroy the LinphonePlayerImpl object. Native pointer is NULL");
|
||||
return;
|
||||
}
|
||||
if(player->user_data) {
|
||||
delete (LinphonePlayerData *)player->user_data;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue