Github user nikhilkh commented on a diff in the pull request:

    https://github.com/apache/cordova-plugin-camera/pull/88#discussion_r28708275
  
    --- Diff: src/windows/CameraProxy.js ---
    @@ -310,29 +319,50 @@ function takePictureFromCameraWP(successCallback, 
errorCallback, args) {
     
             tempFolder.createFileAsync(fileName, generateUniqueCollisionOption)
                 .then(function(tempCapturedFile) {
    -                capturedFile = tempCapturedFile;
    -                return 
capture.capturePhotoToStorageFileAsync(encodingProperties, capturedFile);
    +                return new WinJS.Promise(function (complete) {
    +                    var imgStream = new 
Windows.Storage.Streams.InMemoryRandomAccessStream();
    --- End diff --
    
    imgStream.close() needs to be invoked once you are done using it to release 
system resources. It needs to be part of the success and error case.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to