Fixed memory issues with future.m.
This commit is contained in:
parent
dd54469677
commit
fb884abc41
|
@ -4,10 +4,11 @@
|
||||||
// functions and constants FROM THE FUTURE!
|
// functions and constants FROM THE FUTURE!
|
||||||
|
|
||||||
// TODO add weight constants here?
|
// TODO add weight constants here?
|
||||||
|
// TOOD explain why the constants need to be pointers themselves
|
||||||
|
|
||||||
// added in OS X 10.10; we need 10.8
|
// added in OS X 10.10; we need 10.8
|
||||||
CFStringRef FUTURE_kCTFontOpenTypeFeatureTag = NULL;
|
CFStringRef *FUTURE_kCTFontOpenTypeFeatureTag = NULL;
|
||||||
CFStringRef FUTURE_kCTFontOpenTypeFeatureValue = NULL;
|
CFStringRef *FUTURE_kCTFontOpenTypeFeatureValue = NULL;
|
||||||
|
|
||||||
// note that we treat any error as "the symbols aren't there" (and don't care if dlclose() failed)
|
// note that we treat any error as "the symbols aren't there" (and don't care if dlclose() failed)
|
||||||
void loadFutures(void)
|
void loadFutures(void)
|
||||||
|
|
|
@ -166,8 +166,8 @@ extern void openTypeToAAT(uiOpenTypeFeatures *otf, void (*doAAT)(uint16_t type,
|
||||||
x8tox32(d))
|
x8tox32(d))
|
||||||
|
|
||||||
// future.m
|
// future.m
|
||||||
extern CFStringRef FUTURE_kCTFontOpenTypeFeatureTag;
|
extern CFStringRef *FUTURE_kCTFontOpenTypeFeatureTag;
|
||||||
extern CFStringRef FUTURE_kCTFontOpenTypeFeatureValue;
|
extern CFStringRef *FUTURE_kCTFontOpenTypeFeatureValue;
|
||||||
extern void loadFutures(void);
|
extern void loadFutures(void);
|
||||||
extern void FUTURE_NSLayoutConstraint_setIdentifier(NSLayoutConstraint *constraint, NSString *identifier);
|
extern void FUTURE_NSLayoutConstraint_setIdentifier(NSLayoutConstraint *constraint, NSString *identifier);
|
||||||
extern BOOL FUTURE_NSWindow_performWindowDragWithEvent(NSWindow *w, NSEvent *initialEvent);
|
extern BOOL FUTURE_NSWindow_performWindowDragWithEvent(NSWindow *w, NSEvent *initialEvent);
|
||||||
|
|
Loading…
Reference in New Issue