Fix an exception if hanging up while rotating

This commit is contained in:
Sylvain Berfini 2011-12-09 15:16:54 +01:00
parent cce4aa0995
commit cdcd50e258

View file

@ -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();
}