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:
parent
a0c9006654
commit
345d613e29
@ -166,9 +166,12 @@ void wxNativeFontInfo::ValidateNSFontDescriptor()
|
||||
|
||||
if ( traits != 0 )
|
||||
{
|
||||
[desc autorelease];
|
||||
desc = [desc fontDescriptorWithSymbolicTraits:traits];
|
||||
}
|
||||
else
|
||||
{
|
||||
wxMacCocoaRetain(desc);
|
||||
}
|
||||
m_nsFontDescriptor = desc;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user