[
https://issues.apache.org/jira/browse/CB-808?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Simon MacDonald resolved CB-808.
--------------------------------
Resolution: Fixed
Fix Version/s: 1.8.0
Assignee: Simon MacDonald (was: Joe Bowser)
Patch applied for 1.8.0.
> 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: Simon MacDonald
> Labels: patch, performance
> Fix For: 1.8.0
>
>
> 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