incubator-callback-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From macdo...@apache.org
Subject android commit: CB-808: CameraLauncher leaks bitmaps in Android
Date Thu, 24 May 2012 18:52:27 GMT
Updated Branches:
  refs/heads/master 2d77bcf1a -> 95fa0f446


CB-808: CameraLauncher leaks bitmaps in Android


Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/commit/95fa0f44
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/tree/95fa0f44
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/diff/95fa0f44

Branch: refs/heads/master
Commit: 95fa0f4461dd955dff72a6dbc847b2d52fb9a58a
Parents: 2d77bcf
Author: macdonst <simon.macdonald@gmail.com>
Authored: Fri May 18 15:22:05 2012 -0400
Committer: macdonst <simon.macdonald@gmail.com>
Committed: Thu May 24 14:49:23 2012 -0400

----------------------------------------------------------------------
 .../src/org/apache/cordova/CameraLauncher.java     |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/blob/95fa0f44/framework/src/org/apache/cordova/CameraLauncher.java
----------------------------------------------------------------------
diff --git a/framework/src/org/apache/cordova/CameraLauncher.java b/framework/src/org/apache/cordova/CameraLauncher.java
index ba5d924..e6fe153 100755
--- a/framework/src/org/apache/cordova/CameraLauncher.java
+++ b/framework/src/org/apache/cordova/CameraLauncher.java
@@ -256,7 +256,9 @@ public class CameraLauncher extends Plugin {
             }
         }
         
-        return Bitmap.createScaledBitmap(bitmap, newWidth, newHeight, true);
+        Bitmap retval = Bitmap.createScaledBitmap(bitmap, newWidth, newHeight, true);
+        bitmap.recycle();
+        return retval;
     }
     
     /**


Mime
View raw message