Skip to content

Commit

Permalink
nil out our layer's delegate when we're dealloc'd
Browse files Browse the repository at this point in the history
  • Loading branch information
joshaber committed May 8, 2012
1 parent 645e21c commit b52b897
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/UIKit/TUIView.m
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ + (Class)layerClass
- (void)dealloc
{
[self setTextRenderers:nil];
_layer.delegate = nil;
if(_context.context) {
CGContextRelease(_context.context);
_context.context = NULL;
Expand Down

0 comments on commit b52b897

Please sign in to comment.