Skip to content

Commit

Permalink
make it strong, real strong
Browse files Browse the repository at this point in the history
  • Loading branch information
msft-Jeyaram committed Apr 6, 2017
1 parent 554ce83 commit 4a24b58
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Frameworks/CoreText/CTFramesetter.mm
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,8 @@ CTFrameRef CTFramesetterCreateFrame(CTFramesetterRef framesetterRef, CFRange ran
range.length = [typesetter->_string length] - range.location;
}

woc::StrongCF<__CTFrame*> ret;
ret =
const_cast<__CTFrame*>(_DWriteGetFrame(static_cast<CFAttributedStringRef>(typesetter->_attributedString.get()), range, frameRect));
woc::StrongCF<__CTFrame*> ret = woc::MakeStrongCF<__CTFrame*>(
const_cast<__CTFrame*>(_DWriteGetFrame(static_cast<CFAttributedStringRef>(typesetter->_attributedString.get()), range, frameRect)));
ret->_path = path;
ret->_frameRect.origin = frameRect.origin;

Expand Down

0 comments on commit 4a24b58

Please sign in to comment.