summaryrefslogtreecommitdiffstats
path: root/libs/hwui
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2015-04-10 15:27:01 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2015-04-10 15:27:02 +0000
commitd56e087b550f7ee351f15ac6c5ff9d57a08387fc (patch)
tree7ea4efa4538b4b42c5c626d73b19b38d04af065b /libs/hwui
parent6d718c2f43f6be057f9a519bc02f6b123405b79d (diff)
parente11f3ab000ec8d71e816aea7f266a3ceafebfd56 (diff)
downloadframeworks_base-d56e087b550f7ee351f15ac6c5ff9d57a08387fc.zip
frameworks_base-d56e087b550f7ee351f15ac6c5ff9d57a08387fc.tar.gz
frameworks_base-d56e087b550f7ee351f15ac6c5ff9d57a08387fc.tar.bz2
Merge "Fixing memory leak in RenderBufferCache"
Diffstat (limited to 'libs/hwui')
-rw-r--r--libs/hwui/RenderBufferCache.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/libs/hwui/RenderBufferCache.cpp b/libs/hwui/RenderBufferCache.cpp
index 830a13a..022820b 100644
--- a/libs/hwui/RenderBufferCache.cpp
+++ b/libs/hwui/RenderBufferCache.cpp
@@ -158,6 +158,11 @@ bool RenderBufferCache::put(RenderBuffer* buffer) {
buffer->getWidth(), buffer->getHeight());
return true;
+ } else {
+ RENDER_BUFFER_LOGD("Deleted %s render buffer (%dx%d) Size=%d, MaxSize=%d",
+ RenderBuffer::formatName(buffer->getFormat()),
+ buffer->getWidth(), buffer->getHeight(), size, mMaxSize);
+ delete buffer;
}
return false;
}