Skip to content

Commit

Permalink
Fixed a memory leak in CPTGraphHostingView.
Browse files Browse the repository at this point in the history
  • Loading branch information
eskroch committed Jul 24, 2011
1 parent 0f2c706 commit 2d1a64e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion framework/iPhoneOnly/CPTGraphHostingView.m
Expand Up @@ -103,7 +103,7 @@ -(id)initWithCoder:(NSCoder *)coder
if ( (self = [super initWithCoder:coder]) ) {
collapsesLayers = [coder decodeBoolForKey:@"CPTGraphHostingView.collapsesLayers"];
hostedGraph = nil;
self.hostedGraph = [[coder decodeObjectForKey:@"CPTGraphHostingView.hostedGraph"] retain]; // setup layers
self.hostedGraph = [coder decodeObjectForKey:@"CPTGraphHostingView.hostedGraph"]; // setup layers

allowPinchScaling = NO;
pinchGestureRecognizer = nil;
Expand Down

0 comments on commit 2d1a64e

Please sign in to comment.