Index: webrtc/modules/desktop_capture/mouse_cursor_monitor_mac.mm |
diff --git a/webrtc/modules/desktop_capture/mouse_cursor_monitor_mac.mm b/webrtc/modules/desktop_capture/mouse_cursor_monitor_mac.mm |
index 213071952bf3fa6541d3a493f2b8101fdb012f5c..73d5e028577225796cd38e35e580810cac02ba8b 100644 |
--- a/webrtc/modules/desktop_capture/mouse_cursor_monitor_mac.mm |
+++ b/webrtc/modules/desktop_capture/mouse_cursor_monitor_mac.mm |
@@ -36,7 +36,7 @@ namespace { |
// setting. |
NSImage* PaintInCurrentContext(NSImage* source) { |
NSSize size = [source size]; |
- NSImage* new_image = [[[NSImage alloc] initWithSize:size] autorelease]; |
+ NSImage* new_image = [[NSImage alloc] initWithSize:size]; |
[new_image lockFocus]; |
NSRect frame = NSMakeRect(0, 0, size.width, size.height); |
[source drawInRect:frame |