diff options
author | John Reck <jreck@google.com> | 2014-10-16 09:18:11 -0700 |
---|---|---|
committer | John Reck <jreck@google.com> | 2014-10-16 09:18:11 -0700 |
commit | af608319f22989f673d1d0d4d3105f62109274bd (patch) | |
tree | d506b9eef6087244940f3a60b3631fcb6623d655 | |
parent | ea6f0ae86d62cff88d63b926578c588a956d0512 (diff) | |
download | frameworks_base-af608319f22989f673d1d0d4d3105f62109274bd.zip frameworks_base-af608319f22989f673d1d0d4d3105f62109274bd.tar.gz frameworks_base-af608319f22989f673d1d0d4d3105f62109274bd.tar.bz2 |
Fix memory corruption in test
Bug: 18012918
Change-Id: I8d69624e9be9f0399ddba10ce3903f93177d5930
-rw-r--r-- | libs/hwui/tests/main.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/hwui/tests/main.cpp b/libs/hwui/tests/main.cpp index 3e9a86f..e796e79 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); |