Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion OpenUDID.m
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ + (NSString*) valueWithError:(NSError **)error {

// The AppUID will uniquely identify this app within the pastebins
//
NSString * appUID = (NSString *) [defaults objectForKey:kOpenUDIDAppUIDKey];
NSString * appUID = (NSString *) [[defaults objectForKey:kOpenUDIDAppUIDKey] retain];
if(appUID == nil)
{
// generate a new uuid and store it in user defaults
Expand Down Expand Up @@ -346,6 +346,7 @@ + (NSString*) valueWithError:(NSError **)error {
userInfo:[NSDictionary dictionaryWithObjectsAndKeys:@"OpenUDID succesfully retrieved",@"description", nil]];
}
kOpenUDIDSessionCache = [openUDID retain];
[appUID release];
return kOpenUDIDSessionCache;
}

Expand Down