summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--chrome/browser/cocoa/infobar_controller.mm4
-rw-r--r--tools/valgrind/memcheck/suppressions_mac.txt30
2 files changed, 2 insertions, 32 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])];
diff --git a/tools/valgrind/memcheck/suppressions_mac.txt b/tools/valgrind/memcheck/suppressions_mac.txt
index 0d4a0cc..b789829 100644
--- a/tools/valgrind/memcheck/suppressions_mac.txt
+++ b/tools/valgrind/memcheck/suppressions_mac.txt
@@ -327,33 +327,3 @@
fun:_pthread_start
fun:thread_start
}
-
-{
- # Temporary suppression until crbug.com/17002 is fixed
- bug_17002
- Memcheck:Leak
- fun:malloc_zone_calloc
- fun:_internal_class_createInstanceFromZone
- fun:NSAllocateObject
- fun:+[NSObject alloc]
- fun:-[LinkInfoBarController addAdditionalControls]
- fun:-[InfoBarController awakeFromNib]
- fun:-[NSIBObjectData nibInstantiateWithOwner:topLevelObjects:]
- fun:-[NSNib instantiateNibWithExternalNameTable:]
- fun:-[NSNib instantiateNibWithOwner:topLevelObjects:]
- fun:-[NSViewController loadView]
- fun:-[NSViewController view]
- fun:-[InfoBarContainerController(PrivateMethods) addInfoBar:]
- fun:_ZN12_GLOBAL__N_156InfoBarContainerControllerTest_AddAndRemoveInfoBars_Test8TestBodyEv
- fun:_ZN7testing4Test3RunEv
- fun:_ZN7testing8internal12TestInfoImpl3RunEv
- fun:_ZN7testing8internal12TestInfoImpl7RunTestEPNS_8TestInfoE
- fun:_ZNK7testing8internal4ListIPNS_8TestInfoEE7ForEachIPFvS3_EEEvT_
- fun:_ZN7testing8TestCase3RunEv
- fun:_ZN7testing8TestCase11RunTestCaseEPS0_
- fun:_ZNK7testing8internal4ListIPNS_8TestCaseEE7ForEachIPFvS3_EEEvT_
- fun:_ZN7testing8internal12UnitTestImpl11RunAllTestsEv
- fun:_ZN7testing8UnitTest3RunEv
- fun:_ZN9TestSuite3RunEv
- fun:main
-}