Bug 1228461 - Don't assert we must have keys for keyIds we've seen in ~ClearKeySession(). r=gerald

This commit is contained in:
Chris Pearce 2015-11-27 17:13:35 +13:00
parent cf1853d908
commit 328c012e05
2 changed files with 2 additions and 2 deletions

View File

@ -122,7 +122,7 @@ void
ClearKeyDecryptionManager::ReleaseKeyId(KeyId aKeyId)
{
CK_LOGD("ClearKeyDecryptionManager::ReleaseKeyId");
assert(HasKeyForKeyId(aKeyId));
assert(HasSeenKeyId(aKeyId));
ClearKeyDecryptor* decryptor = mDecryptors[aKeyId];
if (!decryptor->Release()) {

View File

@ -42,7 +42,7 @@ ClearKeySession::~ClearKeySession()
auto& keyIds = GetKeyIds();
for (auto it = keyIds.begin(); it != keyIds.end(); it++) {
assert(ClearKeyDecryptionManager::Get()->HasKeyForKeyId(*it));
assert(ClearKeyDecryptionManager::Get()->HasSeenKeyId(*it));
ClearKeyDecryptionManager::Get()->ReleaseKeyId(*it);
mCallback->KeyStatusChanged(&mSessionId[0], mSessionId.size(),