Skip to content
Browse files

NSString should be autoreleased before returning

  • Loading branch information...
1 parent 73db58b commit 3e655e2284f8912e8bb0e0675c5c4fe52f48c542 @louoso committed Jul 1, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 Classes/net/NSData+UKBase64.m
View
2 Classes/net/NSData+UKBase64.m
@@ -53,7 +53,7 @@ -(NSString *)base64Encode {
buffer[bufferIndex++] = padding;
buffer[bufferIndex++] = padding;
}
- encoded = [[NSString alloc]initWithBytesNoCopy:buffer length:bufferLength encoding:NSASCIIStringEncoding freeWhenDone:YES];
+ encoded = [[[NSString alloc]initWithBytesNoCopy:buffer length:bufferLength encoding:NSASCIIStringEncoding freeWhenDone:YES]autorelease];
}
return encoded;
}

0 comments on commit 3e655e2

Please sign in to comment.
Something went wrong with that request. Please try again.