Ensure crypto gets terminated on error.
Change-Id: If5ade69f98eb4511064b649fa5a8544065753d97 related-to-bug: 17062671
This commit is contained in:
@@ -204,6 +204,9 @@ void WVMExtractorImpl::Initialize()
|
||||
|
||||
if (mSetupStatus != OK) {
|
||||
setError(mSetupStatus);
|
||||
if (mCryptoInitialized) {
|
||||
OEMCrypto_Terminate();
|
||||
}
|
||||
}
|
||||
|
||||
WV_SetWarningToErrorMS(10000);
|
||||
|
||||
Reference in New Issue
Block a user