diff options
| author | Bobby Georgescu <georgescu@google.com> | 2013-05-08 17:49:16 +0000 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2013-05-08 17:49:16 +0000 |
| commit | 9fcabfb535f9e094f77cbdba5305d04209adc0b3 (patch) | |
| tree | 788e3427d371a54f485bc98496ce2bb3f652c7f3 | |
| parent | b281a6463f22c75c5b4a7a7079bdb55e484c2d07 (diff) | |
| parent | 033d43c3334c4633221fb18c5e826964b495f3c1 (diff) | |
| download | android_packages_apps_Gallery2-9fcabfb535f9e094f77cbdba5305d04209adc0b3.tar.gz android_packages_apps_Gallery2-9fcabfb535f9e094f77cbdba5305d04209adc0b3.tar.bz2 android_packages_apps_Gallery2-9fcabfb535f9e094f77cbdba5305d04209adc0b3.zip | |
Merge "Fix memory leak in SparseArrayBitmapPool" into gb-ub-photos-bryce
| -rw-r--r-- | src/com/android/photos/data/SparseArrayBitmapPool.java | 2 |
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; |
