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

Unified Diff: ui/gfx/render_text_mac.h

Issue 10808084: Fix memory leaks in RenderTextMac. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 5 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: ui/gfx/render_text_mac.h
===================================================================
--- ui/gfx/render_text_mac.h (revision 147870)
+++ ui/gfx/render_text_mac.h (working copy)
@@ -75,6 +75,10 @@
// The Core Text line of text. Created by |EnsureLayout()|.
base::mac::ScopedCFTypeRef<CTLineRef> line_;
+ // Array to hold CFAttributedString attributes that allows Core Text to hold
+ // weak references to them without leaking.
+ base::mac::ScopedCFTypeRef<CFMutableArrayRef> attributes_;
+
// Visual dimensions of the text. Computed by |EnsureLayout()|.
Size string_size_;
« no previous file with comments | « skia/ext/skia_utils_mac.mm ('k') | ui/gfx/render_text_mac.cc » ('j') | ui/gfx/render_text_mac.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698