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 624b729203b4fc8bbd45dfa4a74fc8cd756a135e..6adce92f39145319e46f9b92ce0fb23ce9aea7f1 100644 |
--- a/webrtc/modules/desktop_capture/desktop_frame_win.cc |
+++ b/webrtc/modules/desktop_capture/desktop_frame_win.cc |
@@ -30,7 +30,7 @@ DesktopFrameWin::~DesktopFrameWin() { |
} |
// static |
-DesktopFrameWin* DesktopFrameWin::Create( |
+std::unique_ptr<DesktopFrameWin> DesktopFrameWin::Create( |
DesktopSize size, |
SharedMemoryFactory* shared_memory_factory, |
HDC hdc) { |
@@ -60,9 +60,9 @@ DesktopFrameWin* DesktopFrameWin::Create( |
return nullptr; |
} |
- return new DesktopFrameWin(size, bytes_per_row, |
- reinterpret_cast<uint8_t*>(data), |
- std::move(shared_memory), bitmap); |
+ return std::unique_ptr<DesktopFrameWin>( |
+ new DesktopFrameWin(size, bytes_per_row, reinterpret_cast<uint8_t*>(data), |
+ std::move(shared_memory), bitmap)); |
} |
} // namespace webrtc |