incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shane MacPhillamy (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CB-808) CameraLauncher leaks bitmaps in Android
Date Thu, 17 May 2012 22:39:07 GMT
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

        

Mime
View raw message