Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit 16354d7cfbd3891671ce9ba7478c04c7ad4891e6 2 parents 7f6ea7f + ed44b09
@chrisbanes authored
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();
+ }
+ }
}
-
}
Please sign in to comment.
Something went wrong with that request. Please try again.