[fix] fix ScreenCapturerWgc crash during clean up

This commit is contained in:
dijunkun
2025-05-15 15:27:44 +08:00
parent e6e237279c
commit 5eff530ab9
2 changed files with 1 additions and 3 deletions

View File

@@ -264,8 +264,6 @@ void ScreenCapturerWgc::CleanUp() {
for (auto &session : sessions_) {
if (session.session_) {
session.session_->Stop();
session.session_->Release();
session.session_ = nullptr;
}
}
sessions_.clear();