Fix an exception if hanging up while rotating
This commit is contained in:
parent
cce4aa0995
commit
cdcd50e258
1 changed files with 3 additions and 1 deletions
|
@ -274,7 +274,9 @@ public class VideoCallActivity extends Activity implements LinphoneOnCallStateCh
|
|||
|
||||
@Override
|
||||
protected void onDestroy() {
|
||||
androidVideoWindowImpl.release();
|
||||
if (androidVideoWindowImpl != null) { // Prevent linphone from crashing if correspondent hang up while you are rotating
|
||||
androidVideoWindowImpl.release();
|
||||
}
|
||||
super.onDestroy();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue