Part of fix for TEE resource leaks when app crashes

bug: 9672606

Merge of https://widevine-internal-review.googlesource.com/#/c/6531/
from the widevine CDM repository.

Change-Id: I8ed27cbd9944c3459fce251f1261f7656f99e277
This commit is contained in:
Jeff Tinker
2013-07-03 15:34:22 -07:00
parent 9fdeabe3ed
commit 6d93e43c3a

View File

@@ -40,6 +40,11 @@ WVDrmPlugin::~WVDrmPlugin() {
ALOGE("Received failure when trying to detach WVDrmPlugin as an event"
"listener.");
}
CdmResponseType res = mCDM->CloseSession(iter->first);
if (!isCdmResponseTypeSuccess(res)) {
ALOGE("Failed to close session while destroying WVDrmPlugin");
}
}
mCryptoSessions.clear();
}