diff --git a/src/ports/SkFontHost_mac_coretext.cpp b/src/ports/SkFontHost_mac_coretext.cpp index 255b6bef7a..0b643a023a 100644 --- a/src/ports/SkFontHost_mac_coretext.cpp +++ b/src/ports/SkFontHost_mac_coretext.cpp @@ -331,7 +331,7 @@ public: const uint16_t* getShortPtr() { return fObj ? (const uint16_t*) CFDataGetBytePtr(fObj) : NULL; } - ~AutoCFDataRelease() { CFRelease(fObj); } + ~AutoCFDataRelease() { CFSafeRelease(fObj); } private: CFDataRef fObj; };