am 6d93e43c: Part of fix for TEE resource leaks when app crashes

* commit '6d93e43c3a36ab66d4550c37c170a967fc1d6685':
  Part of fix for TEE resource leaks when app crashes
This commit is contained in:
Jeff Tinker
2013-07-07 12:32:03 -07:00
committed by Android Git Automerger

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();
}