diff options
Diffstat (limited to 'libs/hwui/tests/main.cpp')
-rw-r--r-- | libs/hwui/tests/main.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libs/hwui/tests/main.cpp b/libs/hwui/tests/main.cpp index 64ee5f6..ee16991 100644 --- a/libs/hwui/tests/main.cpp +++ b/libs/hwui/tests/main.cpp @@ -83,7 +83,7 @@ int main(int argc, char* argv[]) { rootNode->setPropertyFieldsDirty(RenderNode::GENERIC); ContextFactory factory; - RenderProxy* proxy = new RenderProxy(false, rootNode, &factory); + std::unique_ptr<RenderProxy> proxy(new RenderProxy(false, rootNode, &factory)); proxy->loadSystemProperties(); proxy->initialize(surface); float lightX = width / 2.0; @@ -123,7 +123,6 @@ int main(int argc, char* argv[]) { sleep(5); - delete proxy; rootNode->decStrong(0); printf("Success!\n"); |