summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
authorrohitrao@chromium.org <rohitrao@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-17 15:42:35 +0000
committerrohitrao@chromium.org <rohitrao@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-17 15:42:35 +0000
commite5678149002cbb0955b0b062647f965aae63976d (patch)
tree1977feb3fc28578808c66dda14d0a1f5d54677d4 /chrome
parentaafcf51cdc16f1aeee81e9436277444c6da9abb6 (diff)
downloadchromium_src-e5678149002cbb0955b0b062647f965aae63976d.zip
chromium_src-e5678149002cbb0955b0b062647f965aae63976d.tar.gz
chromium_src-e5678149002cbb0955b0b062647f965aae63976d.tar.bz2
Fixes a leak in [LinkInfoBarController addAdditionalControls].
Removes the valgrind suppression for this leak. Valgrind: 1, rohitrao: 0 BUG=17002 TEST=No more leaky. Review URL: http://codereview.chromium.org/159005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20955 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r--chrome/browser/cocoa/infobar_controller.mm4
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/cocoa/infobar_controller.mm b/chrome/browser/cocoa/infobar_controller.mm
index 5f8083e..a7c1a30 100644
--- a/chrome/browser/cocoa/infobar_controller.mm
+++ b/chrome/browser/cocoa/infobar_controller.mm
@@ -118,8 +118,8 @@
// Create the attributed string for the main message text.
NSMutableAttributedString* infoText =
- [[NSMutableAttributedString alloc]
- initWithString:base::SysWideToNSString(message)];
+ [[[NSMutableAttributedString alloc]
+ initWithString:base::SysWideToNSString(message)] autorelease];
[infoText addAttributes:linkAttributes
range:NSMakeRange(0, [infoText length])];