Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(309)

Unified Diff: webrtc/modules/desktop_capture/win/dxgi_context.cc

Issue 2975103002: Fix http://crbug.com/741252 (Closed)
Patch Set: Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | webrtc/modules/desktop_capture/win/dxgi_duplicator_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/modules/desktop_capture/win/dxgi_context.cc
diff --git a/webrtc/modules/desktop_capture/win/dxgi_context.cc b/webrtc/modules/desktop_capture/win/dxgi_context.cc
index dffefc404f67da729b73a8b56553869d015d153d..18ca99097074eade1f065105950fd6db2bc1ad8f 100644
--- a/webrtc/modules/desktop_capture/win/dxgi_context.cc
+++ b/webrtc/modules/desktop_capture/win/dxgi_context.cc
@@ -21,10 +21,11 @@ DxgiAdapterContext::~DxgiAdapterContext() = default;
DxgiFrameContext::DxgiFrameContext() = default;
DxgiFrameContext::~DxgiFrameContext() {
- DxgiDuplicatorController::Instance()->Unregister(this);
+ Reset();
}
void DxgiFrameContext::Reset() {
+ DxgiDuplicatorController::Instance()->Unregister(this);
controller_id = 0;
}
« no previous file with comments | « no previous file | webrtc/modules/desktop_capture/win/dxgi_duplicator_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698