Index: webrtc/modules/desktop_capture/desktop_frame_win.cc |
diff --git a/webrtc/modules/desktop_capture/desktop_frame_win.cc b/webrtc/modules/desktop_capture/desktop_frame_win.cc |
index e91e37eb5ae20e464a5e2af01e4c99c54341e696..624b729203b4fc8bbd45dfa4a74fc8cd756a135e 100644 |
--- a/webrtc/modules/desktop_capture/desktop_frame_win.cc |
+++ b/webrtc/modules/desktop_capture/desktop_frame_win.cc |
@@ -49,8 +49,7 @@ DesktopFrameWin* DesktopFrameWin::Create( |
std::unique_ptr<SharedMemory> shared_memory; |
HANDLE section_handle = nullptr; |
if (shared_memory_factory) { |
- shared_memory = rtc::ScopedToUnique( |
- shared_memory_factory->CreateSharedMemory(buffer_size)); |
+ shared_memory = shared_memory_factory->CreateSharedMemory(buffer_size); |
section_handle = shared_memory->handle(); |
} |
void* data = nullptr; |