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
This commit is contained in:
parent
761661580e
commit
f1511f2e69
@ -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;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user