Fix extra retain of CTTypesetter
Fixes
*/
CTFramesetterRef CTFramesetterCreateWithAttributedString(CFAttributedStringRef string) {
_CTFramesetter* ret = [_CTFramesetter alloc];
- ret->_typesetter = static_cast<_CTTypesetter*>(CTTypesetterCreateWithAttributedString(string));
+ ret->_typesetter.attach(static_cast<_CTTypesetter*>(CTTypesetterCreateWithAttributedString(string)));
return static_cast<CTFramesetterRef>(ret);
}
