adapting to autorelease of factory method

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59708 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor 2009-03-21 22:32:08 +00:00
parent a0c9006654
commit 345d613e29

View File

@ -166,9 +166,12 @@ void wxNativeFontInfo::ValidateNSFontDescriptor()
if ( traits != 0 )
{
[desc autorelease];
desc = [desc fontDescriptorWithSymbolicTraits:traits];
}
else
{
wxMacCocoaRetain(desc);
}
m_nsFontDescriptor = desc;
}