Permalink
Browse files

Merge pull request #163 from tonycn/master

Request a pull of a memory issue fix in DTAttributedTextContentView.m when using block
  • Loading branch information...
2 parents 9e8e8e8 + 53d70eb commit 7e74deb6d8fa6c7607ac9d6d9161bb7c8a5610b3 @odrobnik odrobnik committed Apr 9, 2012
Showing with 3 additions and 3 deletions.
  1. +1 −1 Core/Source/DTAttributedTextContentView.m
  2. +2 −2 DTCoreText.xcodeproj/project.pbxproj
View
2 Core/Source/DTAttributedTextContentView.m
@@ -660,7 +660,7 @@ - (DTCoreTextLayoutFrame *)layoutFrame
if (_delegateFlags.delegateSupportsNotificationBeforeTextBoxDrawing)
{
- DTAttributedTextContentView *weakself = self;
+ __weak DTAttributedTextContentView *weakself = self;
[_layoutFrame setTextBlockHandler:^(DTTextBlock *textBlock, CGRect frame, CGContextRef context, BOOL *shouldDrawDefaultBackground) {
BOOL result = [weakself->_delegate attributedTextContentView:weakself shouldDrawBackgroundForTextBlock:textBlock frame:frame context:context forLayoutFrame:weakself->_layoutFrame];
View
4 DTCoreText.xcodeproj/project.pbxproj
@@ -1775,7 +1775,7 @@
GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
HEADER_SEARCH_PATHS = /usr/include/libxml2;
- IPHONEOS_DEPLOYMENT_TARGET = 4.3;
+ IPHONEOS_DEPLOYMENT_TARGET = 5.0;
SDKROOT = iphoneos;
};
name = Debug;
@@ -1795,7 +1795,7 @@
GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
HEADER_SEARCH_PATHS = /usr/include/libxml2;
- IPHONEOS_DEPLOYMENT_TARGET = 4.3;
+ IPHONEOS_DEPLOYMENT_TARGET = 5.0;
OTHER_CFLAGS = "-DNS_BLOCK_ASSERTIONS=1";
SDKROOT = iphoneos;
};

0 comments on commit 7e74deb

Please sign in to comment.