diff options
author | 2011-11-14 13:46:33 +0000 | |
---|---|---|
committer | 2011-11-14 13:46:33 +0000 | |
commit | f1511f2e697fc9411fdb966358944ad7cbfc9cc3 (patch) | |
tree | 7300c80cd8bf5ebc71bf82062b2edd9a76ca4690 /src/ports/SkFontHost_mac_coretext.cpp | |
parent | 761661580e798abe3caed8d45c7e742ac87521c6 (diff) |
check for null on Lion
http://codereview.appspot.com/5369107/
M src/ports/SkFontHost_mac_coretext.cpp
git-svn-id: http://skia.googlecode.com/svn/trunk@2674 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/ports/SkFontHost_mac_coretext.cpp')
-rw-r--r-- | src/ports/SkFontHost_mac_coretext.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; }; |