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..9a078193b493f8c4eb413fc4e19efc8ba4ae8bbe 100644 |
--- a/webrtc/modules/desktop_capture/win/dxgi_context.cc |
+++ b/webrtc/modules/desktop_capture/win/dxgi_context.cc |
@@ -9,6 +9,7 @@ |
*/ |
#include "webrtc/modules/desktop_capture/win/dxgi_context.h" |
+ |
#include "webrtc/modules/desktop_capture/win/dxgi_duplicator_controller.h" |
namespace webrtc { |
@@ -21,7 +22,7 @@ DxgiAdapterContext::~DxgiAdapterContext() = default; |
DxgiFrameContext::DxgiFrameContext() = default; |
DxgiFrameContext::~DxgiFrameContext() { |
- DxgiDuplicatorController::Instance()->Unregister(this); |
+ DxgiDuplicatorController::GetReference()->Unregister(this); |
} |
void DxgiFrameContext::Reset() { |