]> git.saurik.com Git - wxWidgets.git/commitdiff
fixing leak, fixes #11782
authorStefan Csomor <csomor@advancedconcepts.ch>
Wed, 3 Mar 2010 21:52:46 +0000 (21:52 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Wed, 3 Mar 2010 21:52:46 +0000 (21:52 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63621 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/osx/carbon/utilscocoa.mm

index 7604f0f277e4d067a0de4034120c7b27fcb92246..c787a15a336ae56a19b540f79feda2efa5c3e7ae 100644 (file)
@@ -194,7 +194,7 @@ void wxNativeFontInfo::OSXValidateNSFontDescriptor()
         traits |= NSFontItalicTrait;
 
     desc = [NSFontDescriptor fontDescriptorWithFontAttributes:
         traits |= NSFontItalicTrait;
 
     desc = [NSFontDescriptor fontDescriptorWithFontAttributes:
-        [[NSDictionary alloc] initWithObjectsAndKeys:
+        [NSDictionary dictionaryWithObjectsAndKeys:
             wxCFStringRef(m_faceName).AsNSString(), NSFontFamilyAttribute,
             [NSNumber numberWithFloat:m_pointSize], NSFontSizeAttribute,
             [NSNumber numberWithUnsignedInt:traits], NSFontSymbolicTrait,
             wxCFStringRef(m_faceName).AsNSString(), NSFontFamilyAttribute,
             [NSNumber numberWithFloat:m_pointSize], NSFontSizeAttribute,
             [NSNumber numberWithUnsignedInt:traits], NSFontSymbolicTrait,