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

Unified Diff: chrome/browser/cocoa/hyperlink_button_cell.mm

Issue 380010: [Mac] Fix a leak in HyperlinkButtonCell (Closed)
Patch Set: Created 11 years, 1 month 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 | tools/valgrind/memcheck/suppressions_mac.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/cocoa/hyperlink_button_cell.mm
diff --git a/chrome/browser/cocoa/hyperlink_button_cell.mm b/chrome/browser/cocoa/hyperlink_button_cell.mm
index ceaea3f2a93ad4d5268109f3c2c6c4866caced9a..db448eec04fee941717807ba0945e1042fd3654f 100644
--- a/chrome/browser/cocoa/hyperlink_button_cell.mm
+++ b/chrome/browser/cocoa/hyperlink_button_cell.mm
@@ -63,7 +63,7 @@
- (NSDictionary*)linkAttributes {
NSUInteger underlineMask = NSUnderlinePatternSolid | NSUnderlineStyleSingle;
NSMutableParagraphStyle* paragraphStyle =
pink (ping after 24hrs) 2009/11/11 17:00:33 the best (and more consistent) fix here would be t
- [[NSParagraphStyle defaultParagraphStyle] mutableCopy];
+ [[[NSParagraphStyle defaultParagraphStyle] mutableCopy] autorelease];
[paragraphStyle setAlignment:[self alignment]];
return [NSDictionary dictionaryWithObjectsAndKeys:
« no previous file with comments | « no previous file | tools/valgrind/memcheck/suppressions_mac.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698