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);
|
wxFontRefData(CTFontRef font);
|
||||||
|
|
||||||
virtual ~wxFontRefData();
|
|
||||||
|
|
||||||
float GetFractionalPointSize() const { return m_info.GetFractionalPointSize(); }
|
float GetFractionalPointSize() const { return m_info.GetFractionalPointSize(); }
|
||||||
|
|
||||||
wxFontFamily GetFamily() const { return m_info.GetFamily(); }
|
wxFontFamily GetFamily() const { return m_info.GetFamily(); }
|
||||||
@@ -271,11 +269,6 @@ wxFontRefData::wxFontRefData(const wxFontInfo& info)
|
|||||||
SetEncoding(info.GetEncoding());
|
SetEncoding(info.GetEncoding());
|
||||||
}
|
}
|
||||||
|
|
||||||
wxFontRefData::~wxFontRefData()
|
|
||||||
{
|
|
||||||
Free();
|
|
||||||
}
|
|
||||||
|
|
||||||
void wxFontRefData::Free()
|
void wxFontRefData::Free()
|
||||||
{
|
{
|
||||||
m_ctFont.reset();
|
m_ctFont.reset();
|
||||||
|
Reference in New Issue
Block a user