From af608319f22989f673d1d0d4d3105f62109274bd Mon Sep 17 00:00:00 2001 From: John Reck Date: Thu, 16 Oct 2014 09:18:11 -0700 Subject: Fix memory corruption in test Bug: 18012918 Change-Id: I8d69624e9be9f0399ddba10ce3903f93177d5930 --- libs/hwui/tests/main.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'libs/hwui/tests/main.cpp') 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 = 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); -- cgit v1.1