mirror of
https://github.com/apache/cordova-android.git
synced 2026-02-21 00:02:46 +08:00
CB-808: CameraLauncher leaks bitmaps in Android
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user