summaryrefslogtreecommitdiffstats
path: root/chrome/browser/cocoa/hyperlink_button_cell.mm
diff options
context:
space:
mode:
authorrsesek@chromium.org <rsesek@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-10 15:10:31 +0000
committerrsesek@chromium.org <rsesek@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-10 15:10:31 +0000
commit5091d3ef82c5bd83fbb7881fbf4af6eebc20969c (patch)
tree3760c1ce921c1c6226cb9f4aa1c09872ce1ace5e /chrome/browser/cocoa/hyperlink_button_cell.mm
parent034452926aad6077ac6fb4b7801c4cd1da89a53c (diff)
downloadchromium_src-5091d3ef82c5bd83fbb7881fbf4af6eebc20969c.zip
chromium_src-5091d3ef82c5bd83fbb7881fbf4af6eebc20969c.tar.gz
chromium_src-5091d3ef82c5bd83fbb7881fbf4af6eebc20969c.tar.bz2
[Mac] Fix a leak in HyperlinkButtonCell
BUG=27149 TEST=Valgrind Review URL: http://codereview.chromium.org/380010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31558 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/cocoa/hyperlink_button_cell.mm')
-rw-r--r--chrome/browser/cocoa/hyperlink_button_cell.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/cocoa/hyperlink_button_cell.mm b/chrome/browser/cocoa/hyperlink_button_cell.mm
index ceaea3f..db448ee 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 =
- [[NSParagraphStyle defaultParagraphStyle] mutableCopy];
+ [[[NSParagraphStyle defaultParagraphStyle] mutableCopy] autorelease];
[paragraphStyle setAlignment:[self alignment]];
return [NSDictionary dictionaryWithObjectsAndKeys: