forked from public/cordova-plugin-camera
b0ee9dd905
There was a place (~line 701) in CameraLauncher.java where there was the potential for input and output streams to never be closed if an exception occurs at the wrong time. There were some other places where an InputStream was used anonymously, and so would never be closed. This change introduces try/finally blocks to ensure that the streams will always end up closed. Change-Id: I479bceddcd631bfec45c3f5ee7e88ddb04c59073 Signed-off-by: Joe Bowser <bowserj@apache.org> (Closes #90)