카메라 뷰 소스에서 아래와 같이 하면 어플이 비정상적으로 종료가 됩니다
    @Override
 protected void onDestroy() {
  // TODO Auto-generated method stub
  super.onDestroy();
        try {
            mCamera.stopPreview();
            mCamera = null;
  } catch (IOException e) {
   // TODO Auto-generated catch block
   e.printStackTrace();
  }
        if(D) Log.e(TAG, "--- ON DESTROY ---");
 }
/////////////////////////
public class MainActivity extends Activity {
   Camera mCamera;
   @Override
    protected void onCreate(Bundle savedInstanceState) {
         mPreview = new Preview(this);
        setContentView(mPreview);
   
    }
      class Preview extends SurfaceView implements SurfaceHolder.Callback {
        ..............
         ..............
        ................
        }
}
 
어떻게 하면 정상적으로 종료를 시킬수 잇나요?