From bcf5d9fb9f9131860b794c1be73798b277c6f2f6 Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Wed, 3 Mar 2010 21:52:46 +0000 Subject: [PATCH] fixing leak, fixes #11782 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63621 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/osx/carbon/utilscocoa.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- 2.45.2