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

Unified Diff: chrome/browser/ui/cocoa/tabs/tab_view.mm

Issue 23503064: [Mac] Fix some leaks in tab drawing code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 3 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: chrome/browser/ui/cocoa/tabs/tab_view.mm
===================================================================
--- chrome/browser/ui/cocoa/tabs/tab_view.mm (revision 222257)
+++ chrome/browser/ui/cocoa/tabs/tab_view.mm (working copy)
@@ -683,9 +683,9 @@
// draw the mask into it.
base::ScopedCFTypeRef<CGColorSpaceRef> colorspace(
CGColorSpaceCreateDeviceGray());
- CGContextRef maskContext =
+ base::ScopedCFTypeRef<CGContextRef> maskContext(
Nico 2013/09/16 20:54:21 !!
CGBitmapContextCreate(NULL, tabWidth * scale, kMaskHeight * scale,
- 8, tabWidth * scale, colorspace, 0);
+ 8, tabWidth * scale, colorspace, 0));
CGContextScaleCTM(maskContext, scale, scale);
NSGraphicsContext* maskGraphicsContext =
[NSGraphicsContext graphicsContextWithGraphicsPort:maskContext

Powered by Google App Engine
This is Rietveld 408576698