summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author John Reck <jreck@google.com> 2016-01-14 22:59:24 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2016-01-14 22:59:24 +0000
commit1d0f17b4f58ce3d9b8c382cd92a671a1d9cd0ead (patch)
treedc7304d3abedd5e85633796a94a9ce9623f542f7
parentcde1c2a7174833dc9c73c261ea6d6be9f7a4634b (diff)
parent00159554e0f96a6d3a742f21bca6f48281e2fc04 (diff)
Merge "Fix leak in OffscreenBufferPoolTests"
-rw-r--r--libs/hwui/tests/unit/OffscreenBufferPoolTests.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/hwui/tests/unit/OffscreenBufferPoolTests.cpp b/libs/hwui/tests/unit/OffscreenBufferPoolTests.cpp
index 5278730a3c9e..2fd879562265 100644
--- a/libs/hwui/tests/unit/OffscreenBufferPoolTests.cpp
+++ b/libs/hwui/tests/unit/OffscreenBufferPoolTests.cpp
@@ -116,6 +116,8 @@ TEST(OffscreenBufferPool, resize) {
// original allocation now only thing in pool
EXPECT_EQ(1u, pool.getCount());
EXPECT_EQ(layer->getSizeInBytes(), pool.getSize());
+
+ pool.putOrDelete(layer2);
});
}