Skip to content

Commit

Permalink
Fixed incorrect memory management $47
Browse files Browse the repository at this point in the history
  • Loading branch information
philippec committed Jul 12, 2015
1 parent acb4781 commit 81ebc69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/PhAuthenticationToken.m
Expand Up @@ -22,7 +22,7 @@ - (id) initWithToken: (NSString*) token secondsToExpiry: (NSTimeInterval) second
_authenticationToken = [token copy];
if (seconds != 0)
{
_expiry = [NSDate dateWithTimeIntervalSinceNow: seconds];
_expiry = [[NSDate dateWithTimeIntervalSinceNow: seconds] retain];
}
_permissions = [perms copy];
}
Expand Down

0 comments on commit 81ebc69

Please sign in to comment.