adapting to autorelease of factory methods

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

View File

@ -168,10 +168,7 @@ void wxNativeFontInfo::ValidateNSFontDescriptor()
{
desc = [desc fontDescriptorWithSymbolicTraits:traits];
}
else
{
wxMacCocoaRetain(desc);
}
wxMacCocoaRetain(desc);
m_nsFontDescriptor = desc;
}
@ -179,7 +176,7 @@ WX_NSFont wxFont::CreateNSFont(const wxNativeFontInfo* info)
{
NSFont* nsFont;
nsFont = [NSFont fontWithDescriptor:info->m_nsFontDescriptor size:info->m_pointSize];
wxMacCocoaRetain(nsFont);
return nsFont;
}