Permalink
Browse files

updated code to not leak CEPubnubResponse 'channel' property (thanks …

…to Massimiliano Rossi for catching that)
  • Loading branch information...
1 parent 7df7173 commit db024122a58c3356011fba9e9cd26a1e4470f304 @jazzychad committed May 9, 2011
Showing with 6 additions and 6 deletions.
  1. +6 −6 CEPubnub/CEPubnubRequest.m
@@ -134,7 +134,7 @@ @implementation CEPubnubResponse
delegate = callback;
parser = [SBJsonParser new];
[self setPubnub:pubnub_o];
- channel = nil;
+ self.channel = nil;
return self;
}
@@ -148,8 +148,8 @@ @implementation CEPubnubResponse
delegate = callback;
parser = [SBJsonParser new];
//pubnub = pubnub_o;
- [self setPubnub:pubnub_o];
- channel = channel_o;
+ [self setPubnub:pubnub_o];
+ self.channel = channel_o;
return self;
}
@@ -162,8 +162,8 @@ @implementation CEPubnubResponse
delegate = nil;
parser = [SBJsonParser new];
//pubnub = pubnub_o;
- [self setPubnub:pubnub_o];
- channel = channel_o;
+ [self setPubnub:pubnub_o];
+ self.channel = channel_o;
return self;
}
@@ -192,7 +192,7 @@ -(void) dealloc
[pubnub release];
pubnub = nil;
}
-
+ self.channel = nil;
[super dealloc];
}

0 comments on commit db02412

Please sign in to comment.