From 48237fc2609f587b8cf2c262972ce7c437afb9d3 Mon Sep 17 00:00:00 2001 From: Bobby Georgescu Date: Tue, 7 May 2013 16:41:04 -0700 Subject: Fix memory leak in SparseArrayBitmapPool Bug: 8857493 Change-Id: Ie5fae457aea91973caa07f8955b1364df573821b --- src/com/android/photos/data/SparseArrayBitmapPool.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/com/android/photos/data/SparseArrayBitmapPool.java') 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; -- cgit v1.2.3