From b3650a9661a7c1cac1c876f70a040d8a6f523657 Mon Sep 17 00:00:00 2001 From: Jeff Tinker Date: Wed, 8 Oct 2014 18:01:53 -0700 Subject: [PATCH] Ensure crypto gets terminated on error. Change-Id: If5ade69f98eb4511064b649fa5a8544065753d97 related-to-bug: 17062671 --- proprietary/wvm/WVMExtractorImpl.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/proprietary/wvm/WVMExtractorImpl.cpp b/proprietary/wvm/WVMExtractorImpl.cpp index f7a1d387..4bfb3aa4 100644 --- a/proprietary/wvm/WVMExtractorImpl.cpp +++ b/proprietary/wvm/WVMExtractorImpl.cpp @@ -204,6 +204,9 @@ void WVMExtractorImpl::Initialize() if (mSetupStatus != OK) { setError(mSetupStatus); + if (mCryptoInitialized) { + OEMCrypto_Terminate(); + } } WV_SetWarningToErrorMS(10000);