diff --git a/src/FontData.cpp b/src/FontData.cpp index 13eee6c..71479c9 100644 --- a/src/FontData.cpp +++ b/src/FontData.cpp @@ -9,8 +9,6 @@ #elif __APPLE__ #include #include -#include - CTFontCollectionRef fontCollectionRef = nullptr; #elif _WIN32 #include #include "WindowsFontData/CustomFontSetManager.h" @@ -91,10 +89,6 @@ void FontData::push_default_font_families(std::vector& fontFamilies) c } FontData::~FontData() { -#ifdef __APPLE__ - if(fontCollectionRef) - CFRelease(fontCollectionRef); -#endif } Vector2f get_str_font_bounds(const SkFont& font, const std::string& str) {