summaryrefslogtreecommitdiffstats
path: root/libs/hwui/tests/main.cpp
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2014-10-22 14:18:19 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-10-22 14:18:21 +0000
commit733bb3bc78cfb4553441f5d86fce02eb12e32d02 (patch)
treed056d3b654c7a253d175bd3a2eb847bc7a74f295 /libs/hwui/tests/main.cpp
parent3961d2af80f4c0285176f2984b35ffe5ee65ba5a (diff)
parentaf608319f22989f673d1d0d4d3105f62109274bd (diff)
downloadframeworks_base-733bb3bc78cfb4553441f5d86fce02eb12e32d02.zip
frameworks_base-733bb3bc78cfb4553441f5d86fce02eb12e32d02.tar.gz
frameworks_base-733bb3bc78cfb4553441f5d86fce02eb12e32d02.tar.bz2
Merge "Fix memory corruption in test" into lmp-mr1-dev
Diffstat (limited to 'libs/hwui/tests/main.cpp')
-rw-r--r--libs/hwui/tests/main.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/hwui/tests/main.cpp b/libs/hwui/tests/main.cpp
index 2b80d56..2d99e9f 100644
--- a/libs/hwui/tests/main.cpp
+++ b/libs/hwui/tests/main.cpp
@@ -76,6 +76,7 @@ int main(int argc, char* argv[]) {
sp<Surface> surface = control->getSurface();
RenderNode* rootNode = new RenderNode();
+ rootNode->incStrong(0);
rootNode->mutateStagingProperties().setLeftTopRightBottom(0, 0, width, height);
rootNode->setPropertyFieldsDirty(RenderNode::X | RenderNode::Y);
rootNode->mutateStagingProperties().setClipToBounds(false);