summaryrefslogtreecommitdiff
path: root/src/com/android/bitmap/UnrefedPooledCache.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/bitmap/UnrefedPooledCache.java')
-rw-r--r--src/com/android/bitmap/UnrefedPooledCache.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/com/android/bitmap/UnrefedPooledCache.java b/src/com/android/bitmap/UnrefedPooledCache.java
index 5729ec4..7bc6d0d 100644
--- a/src/com/android/bitmap/UnrefedPooledCache.java
+++ b/src/com/android/bitmap/UnrefedPooledCache.java
@@ -110,6 +110,7 @@ public class UnrefedPooledCache<K, V extends Poolable> implements PooledCache<K,
public void offer(V value) {
Trace.beginSection("pool offer");
if (value.getRefCount() != 0 || !value.isEligibleForPooling()) {
+ Trace.endSection();
throw new IllegalArgumentException("unexpected offer of an invalid object: " + value);
}
mPool.offer(value);