Skip to content

Commit

Permalink
Bug 1842706 - part2 : close all sessions when shutting down CDM Paren…
Browse files Browse the repository at this point in the history
…t. r=media-playback-reviewers,padenot

Differential Revision: https://phabricator.services.mozilla.com/D186482
  • Loading branch information
alastor0325 committed Aug 18, 2023
1 parent 6dd5e76 commit d25b5c5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dom/media/ipc/MFCDMParent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,9 @@ void MFCDMParent::Destroy() {
}
ShutdownCDM();
mFactory = nullptr;
for (auto& iter : mSessions) {
iter.second->Close();
}
mSessions.clear();
mIPDLSelfRef = nullptr;
}
Expand Down

0 comments on commit d25b5c5

Please sign in to comment.