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

Unified Diff: skia/ext/skia_utils_mac.mm

Issue 12390058: mac: Fix a few memory leaks. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cr Created 7 years, 10 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
Index: skia/ext/skia_utils_mac.mm
diff --git a/skia/ext/skia_utils_mac.mm b/skia/ext/skia_utils_mac.mm
index c0db0132ab9ffabd4a32554a76fca25cd71147ab..687e776e84d99d65aacebe1bf36f33db50e9aa48 100644
--- a/skia/ext/skia_utils_mac.mm
+++ b/skia/ext/skia_utils_mac.mm
@@ -363,8 +363,10 @@ CGContextRef SkiaBitLocker::cgContext() {
bitmap_.allocPixels();
bitmap_.eraseColor(0);
}
+ base::mac::ScopedCFTypeRef<CGColorSpaceRef> color_space(
Robert Sesek 2013/03/04 14:47:53 It looks like the naming convention in skia is cam
Nico 2013/03/04 14:52:35 Yes, but this file is chromium code, not skia code
+ CGColorSpaceCreateDeviceRGB());
cgContext_ = CGBitmapContextCreate(bitmap_.getPixels(), bitmap_.width(),
- bitmap_.height(), 8, bitmap_.rowBytes(), CGColorSpaceCreateDeviceRGB(),
+ bitmap_.height(), 8, bitmap_.rowBytes(), color_space,
kCGBitmapByteOrder32Host | kCGImageAlphaPremultipliedFirst);
// Apply device matrix.
« no previous file with comments | « chrome/browser/ui/cocoa/browser/password_generation_bubble_controller.mm ('k') | ui/gfx/color_profile_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698