diff options
| author | Bobby Georgescu <georgescu@google.com> | 2013-05-07 16:41:04 -0700 |
|---|---|---|
| committer | Bobby Georgescu <georgescu@google.com> | 2013-05-07 17:42:07 -0700 |
| commit | 033d43c3334c4633221fb18c5e826964b495f3c1 (patch) | |
| tree | 4d179e604f0c234b6bb2ba0703e3e25985d2d99a /src | |
| parent | 6febbfc6c9c2d645f22fb200574fe14fa1201046 (diff) | |
| download | android_packages_apps_Gallery2-033d43c3334c4633221fb18c5e826964b495f3c1.tar.gz android_packages_apps_Gallery2-033d43c3334c4633221fb18c5e826964b495f3c1.tar.bz2 android_packages_apps_Gallery2-033d43c3334c4633221fb18c5e826964b495f3c1.zip | |
Fix memory leak in SparseArrayBitmapPool
Bug: 8857493
Change-Id: Ie5fae457aea91973caa07f8955b1364df573821b
Diffstat (limited to 'src')
| -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; |
