Index: ui/gfx/image/image_mac_unittest.mm |
diff --git a/ui/gfx/image/image_mac_unittest.mm b/ui/gfx/image/image_mac_unittest.mm |
index 924cebd048f23d48100fb35665381d117140b76c..ba2e47db28a24cd25bab15e01e7fd29deb7ddd45 100644 |
--- a/ui/gfx/image/image_mac_unittest.mm |
+++ b/ui/gfx/image/image_mac_unittest.mm |
@@ -18,7 +18,7 @@ class ImageMacTest : public testing::Test { |
public: |
void CreateBitmapImageRep(int width, int height, |
Nico
2012/06/12 15:31:50
nit: "Create" suggests that the caller is responsi
|
NSBitmapImageRep** image_rep) { |
- *image_rep = [[NSBitmapImageRep alloc] |
+ *image_rep = [[[NSBitmapImageRep alloc] |
initWithBitmapDataPlanes:NULL |
pixelsWide:width |
pixelsHigh:height |
@@ -29,7 +29,8 @@ class ImageMacTest : public testing::Test { |
colorSpaceName:NSDeviceRGBColorSpace |
bitmapFormat:0 |
bytesPerRow:0 |
- bitsPerPixel:0]; |
+ bitsPerPixel:0] |
+ autorelease]; |
} |
}; |