X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f7946addb258a973e9da5601cf96712ed4f5c5c8..9914bfbb77f48baf869b63aff58feb2b145ff4d3:/src/osx/carbon/utilscocoa.mm 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,