From de7ab2a45f419ef256be8dd9248c8c5b9ba95dad Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 12 Sep 2018 23:41:37 +0200 Subject: [PATCH] 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. --- src/osx/carbon/font.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/osx/carbon/font.cpp b/src/osx/carbon/font.cpp index 4561e90514..177b3d62f1 100644 --- a/src/osx/carbon/font.cpp +++ b/src/osx/carbon/font.cpp @@ -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();