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

Unified Diff: ui/gfx/canvas_skia_mac.mm

Issue 8308008: mac: Fix a memory leak in canvas_skia_mac. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 2 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/canvas_skia_mac.mm
diff --git a/ui/gfx/canvas_skia_mac.mm b/ui/gfx/canvas_skia_mac.mm
index a20f92af2e6c7e8c2e42a352a1c1baded852779d..80182954c380c527ce83a5272cfa0c968890730d 100644
--- a/ui/gfx/canvas_skia_mac.mm
+++ b/ui/gfx/canvas_skia_mac.mm
@@ -67,7 +67,7 @@ void CanvasSkia::DrawStringInt(const string16& text,
base::mac::NSToCFCast(ns_string)));
CGRect text_bounds = CGRectMake(x, y, w, h);
- CGMutablePathRef path = CGPathCreateMutable();
+ base::mac::ScopedCFTypeRef<CGMutablePathRef> path(CGPathCreateMutable());
CGPathAddRect(path, NULL, text_bounds);
base::mac::ScopedCFTypeRef<CTFrameRef> frame(
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698