Index: chrome/browser/ui/cocoa/tabs/tab_strip_controller.mm |
=================================================================== |
--- chrome/browser/ui/cocoa/tabs/tab_strip_controller.mm (revision 222257) |
+++ chrome/browser/ui/cocoa/tabs/tab_strip_controller.mm (working copy) |
@@ -166,7 +166,7 @@ |
[NSGraphicsContext saveGraphicsState]; |
for (ui::ScaleFactor scale_factor : ui::GetSupportedScaleFactors()) { |
float scale = GetScaleFactorScale(scale_factor); |
- NSBitmapImageRep *bmpImageRep = [[NSBitmapImageRep alloc] |
+ NSBitmapImageRep *bmpImageRep = [[[NSBitmapImageRep alloc] |
initWithBitmapDataPlanes:NULL |
pixelsWide:size.width * scale |
pixelsHigh:size.height * scale |
@@ -176,7 +176,7 @@ |
isPlanar:NO |
colorSpaceName:NSDeviceRGBColorSpace |
bytesPerRow:0 |
- bitsPerPixel:0]; |
+ bitsPerPixel:0] autorelease]; |
Nico
2013/09/16 20:54:21
!!
|
[bmpImageRep setSize:size]; |
[NSGraphicsContext setCurrentContext: |
[NSGraphicsContext graphicsContextWithBitmapImageRep:bmpImageRep]]; |