Merge "Added protections to RenderScript VTS class teardown." am: 80002c1ff3 am: 06f79dbd05

am: 88d9fda69a

Change-Id: I5610aa46a612acbd3b854de9721fd4c204a2f5f0
This commit is contained in:
Michael Butler
2017-07-14 22:54:58 +00:00
committed by android-build-merger

View File

@@ -28,8 +28,10 @@ void RenderscriptHidlTest::SetUp() {
}
void RenderscriptHidlTest::TearDown() {
context->contextFinish();
context->contextDestroy();
if (context.get() != nullptr) {
context->contextFinish();
context->contextDestroy();
}
}
// A class for test environment setup (kept since this file is a template).