mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1228461 - Don't assert we must have keys for keyIds we've seen in ~ClearKeySession(). r=gerald
This commit is contained in:
parent
cf1853d908
commit
328c012e05
@ -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()) {
|
||||
|
@ -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(),
|
||||
|
Loading…
Reference in New Issue
Block a user