Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-808

CameraLauncher leaks bitmaps in Android

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.7.0
    • 1.8.0
    • cordova-android
    • Android

    Description

      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.

      Attachments

        Activity

          People

            macdonst Simon MacDonald
            coaic Shane MacPhillamy
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: