Skip to content

Commit

Permalink
Fix bug 357. Setting preview callback to null before camera release. (r…
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisdukey authored and rt2zz committed Sep 13, 2016
1 parent 22f7998 commit d15022d
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ synchronized private void stopCamera() {
try {
if (_camera != null) {
_camera.stopPreview();
_camera.setPreviewCallback(null);
RCTCamera.getInstance().releaseCameraInstance(_cameraType);
_camera = null;
}
Expand Down

0 comments on commit d15022d

Please sign in to comment.