Browse files

Merge pull request #39 from levelup/release-removed-cache

Also release the bitmaps that are stored for reuse when trimming memory
  • Loading branch information...
2 parents 7f6ea7f + ed44b09 commit 16354d7cfbd3891671ce9ba7478c04c7ad4891e6 @chrisbanes committed Nov 22, 2013
Showing with 6 additions and 1 deletion.
  1. +6 −1 library/src/uk/co/senab/bitmapcache/BitmapMemoryLruCache.java
View
7 library/src/uk/co/senab/bitmapcache/BitmapMemoryLruCache.java
@@ -108,6 +108,11 @@ void trimMemory() {
remove(entry.getKey());
}
}
+
+ if (mRemovedEntries!=null) {
+ synchronized (mRemovedEntries) {
+ mRemovedEntries.clear();
+ }
+ }
}
-
}

0 comments on commit 16354d7

Please sign in to comment.