Merge "Added protections to RenderScript VTS class teardown."

This commit is contained in:
Treehugger Robot
2017-07-14 22:38:38 +00:00
committed by Gerrit Code Review

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).