Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(925)

Unified Diff: ui/gfx/image/image_mac_unittest.mm

Issue 10533107: Fixes memory leak (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed suppression Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/valgrind/memcheck/suppressions_mac.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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];
}
};
« no previous file with comments | « tools/valgrind/memcheck/suppressions_mac.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698