Remove unnecessary wxFontRefData dtor in wxOSX too
Smart pointers will clean up the resources automatically, there is no need to call Free() manually from the dtor.
This commit is contained in:
@@ -47,8 +47,6 @@ public:
|
||||
|
||||
wxFontRefData(CTFontRef font);
|
||||
|
||||
virtual ~wxFontRefData();
|
||||
|
||||
float GetFractionalPointSize() const { return m_info.GetFractionalPointSize(); }
|
||||
|
||||
wxFontFamily GetFamily() const { return m_info.GetFamily(); }
|
||||
@@ -271,11 +269,6 @@ wxFontRefData::wxFontRefData(const wxFontInfo& info)
|
||||
SetEncoding(info.GetEncoding());
|
||||
}
|
||||
|
||||
wxFontRefData::~wxFontRefData()
|
||||
{
|
||||
Free();
|
||||
}
|
||||
|
||||
void wxFontRefData::Free()
|
||||
{
|
||||
m_ctFont.reset();
|
||||
|
Reference in New Issue
Block a user