Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Free QualcommCameraHardware instance when closing camera
The LINK_mm_camera_destroy is being called in QualcommCameraHardware destructor. If we do not free the QualcommCameraHardware from camera_device_close the camera may not be deinitialized and drain the battery when not using camera. This is especially visible when Skype is installed - which opens the camera during startup to probe the camera and obtains its parameters even when the user is not using camera in skype.
- Loading branch information
1 parent
dff3f01
commit 9be300b
Showing
2 changed files
with
2 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters