From: Stefan Csomor Date: Wed, 3 Mar 2010 21:52:46 +0000 (+0000) Subject: fixing leak, fixes #11782 X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/bcf5d9fb9f9131860b794c1be73798b277c6f2f6 fixing leak, fixes #11782 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63621 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/osx/carbon/utilscocoa.mm b/src/osx/carbon/utilscocoa.mm index 7604f0f277..c787a15a33 100644 --- a/src/osx/carbon/utilscocoa.mm +++ b/src/osx/carbon/utilscocoa.mm @@ -194,7 +194,7 @@ void wxNativeFontInfo::OSXValidateNSFontDescriptor() traits |= NSFontItalicTrait; desc = [NSFontDescriptor fontDescriptorWithFontAttributes: - [[NSDictionary alloc] initWithObjectsAndKeys: + [NSDictionary dictionaryWithObjectsAndKeys: wxCFStringRef(m_faceName).AsNSString(), NSFontFamilyAttribute, [NSNumber numberWithFloat:m_pointSize], NSFontSizeAttribute, [NSNumber numberWithUnsignedInt:traits], NSFontSymbolicTrait,