From e5678149002cbb0955b0b062647f965aae63976d Mon Sep 17 00:00:00 2001 From: "rohitrao@chromium.org" Date: Fri, 17 Jul 2009 15:42:35 +0000 Subject: 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 --- chrome/browser/cocoa/infobar_controller.mm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'chrome/browser/cocoa/infobar_controller.mm') 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])]; -- cgit v1.1