diff --git a/webrtc/modules/desktop_capture/mouse_cursor_monitor_mac.mm b/webrtc/modules/desktop_capture/mouse_cursor_monitor_mac.mm index f33720d100..331ee80b33 100644 --- a/webrtc/modules/desktop_capture/mouse_cursor_monitor_mac.mm +++ b/webrtc/modules/desktop_capture/mouse_cursor_monitor_mac.mm @@ -262,6 +262,7 @@ void MouseCursorMonitorMac::CaptureImage() { last_cursor_->hotspot().equals(hotspot) && memcmp(last_cursor_->image()->data(), src_data, last_cursor_->image()->stride() * size.height()) == 0) { + CFRelease(image_data_ref); return; }