Shane MacPhillamy created CB-808:
------------------------------------

             Summary: CameraLauncher leaks bitmaps in Android
                 Key: CB-808
                 URL: https://issues.apache.org/jira/browse/CB-808
             Project: Apache Cordova
          Issue Type: Bug
          Components: Android
    Affects Versions: 1.7.0
         Environment: Android
            Reporter: Shane MacPhillamy
            Assignee: Joe Bowser


In CameraLauncher.java there are a number of assignments like:

bitmap = scaleBitmap(bitmap);

This allows the old reference to bitmap to leak. I'd suggest something like:

scaledBitmap = scaleBitmap(unscaledBitmap);
unscaledBitmap.recycle();
System.gc();

To allow native code to reclaim original no longer required bitmap.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to