From 81ebc69c8f6075265d2e1c5f986a0d34803d9201 Mon Sep 17 00:00:00 2001 From: Philippe Casgrain Date: Sun, 12 Jul 2015 10:57:18 -0400 Subject: [PATCH] Fixed incorrect memory management $47 --- classes/PhAuthenticationToken.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/PhAuthenticationToken.m b/classes/PhAuthenticationToken.m index 0720f6e..bfa2872 100644 --- a/classes/PhAuthenticationToken.m +++ b/classes/PhAuthenticationToken.m @@ -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]; }