summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBobby Georgescu <georgescu@google.com>2013-05-08 10:50:38 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2013-05-08 10:50:38 -0700
commitef76e2ab231e5dc00321f6a69680560b86985947 (patch)
tree6ddf21c178570cf0b5086d3228b42d578d30bddd
parent78d946ccc75d34231d46c5a06ba2bc46fef34529 (diff)
parent9fcabfb535f9e094f77cbdba5305d04209adc0b3 (diff)
downloadandroid_packages_apps_Gallery2-ef76e2ab231e5dc00321f6a69680560b86985947.tar.gz
android_packages_apps_Gallery2-ef76e2ab231e5dc00321f6a69680560b86985947.tar.bz2
android_packages_apps_Gallery2-ef76e2ab231e5dc00321f6a69680560b86985947.zip
am 9fcabfb5: Merge "Fix memory leak in SparseArrayBitmapPool" into gb-ub-photos-bryce
* commit '9fcabfb535f9e094f77cbdba5305d04209adc0b3': Fix memory leak in SparseArrayBitmapPool
-rw-r--r--src/com/android/photos/data/SparseArrayBitmapPool.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/com/android/photos/data/SparseArrayBitmapPool.java b/src/com/android/photos/data/SparseArrayBitmapPool.java
index 851259056..1ef9e9f48 100644
--- a/src/com/android/photos/data/SparseArrayBitmapPool.java
+++ b/src/com/android/photos/data/SparseArrayBitmapPool.java
@@ -135,6 +135,8 @@ public class SparseArrayBitmapPool {
mStore.put(key, newNode);
if (newNode.nextInPool == null) {
mPoolNodesTail = newNode;
+ } else {
+ newNode.nextInPool.prevInPool = newNode;
}
mSizeBytes += bytes;
return true;