mirror of
https://github.com/kunkundi/crossdesk.git
synced 2025-10-26 20:25:34 +08:00
[fix] destroy screen capturer only when clean up
This commit is contained in:
@@ -210,6 +210,7 @@ int ScreenCapturerWgc::Stop() {
|
|||||||
sessions_[i].running_ = false;
|
sessions_[i].running_ = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
running_ = false;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -336,9 +336,6 @@ int Render::StopScreenCapturer() {
|
|||||||
if (screen_capturer_) {
|
if (screen_capturer_) {
|
||||||
LOG_INFO("Stop screen capturer")
|
LOG_INFO("Stop screen capturer")
|
||||||
screen_capturer_->Stop();
|
screen_capturer_->Stop();
|
||||||
screen_capturer_->Destroy();
|
|
||||||
delete screen_capturer_;
|
|
||||||
screen_capturer_ = nullptr;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user