Merge pull request #846 from smart-mobile-software:tuto_crash

This commit is contained in:
Andrey Pavlenko
2013-05-07 15:15:16 +04:00
committed by OpenCV Buildbot
2 changed files with 32 additions and 24 deletions

View File

@@ -208,6 +208,8 @@ public class JavaCameraView extends CameraBridgeViewBase implements PreviewCallb
synchronized (this) {
if (mCamera != null) {
mCamera.stopPreview();
mCamera.setPreviewCallback(null);
mCamera.release();
}
mCamera = null;