Skip to content

Commit 57f2f56

Browse files
committed
Fixed a memory leak
1 parent a863e45 commit 57f2f56

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Sources/OAuth2Client/NXOAuth2AccessToken.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ + (id)tokenWithResponseBody:(NSString *)responseBody;
2828
if (expiresIn) {
2929
expiryDate = [NSDate dateWithTimeIntervalSinceNow:[expiresIn integerValue]];
3030
}
31-
return [[[self class] alloc] initWithAccessToken:anAccessToken
32-
refreshToken:aRefreshToken
33-
expiresAt:expiryDate];
31+
return [[[[self class] alloc] initWithAccessToken:anAccessToken
32+
refreshToken:aRefreshToken
33+
expiresAt:expiryDate] autorelease];
3434
}
3535

3636
- (id)initWithAccessToken:(NSString *)anAccessToken;

0 commit comments

Comments
 (0)