Permalink
Browse files

Fixed attributes getter

  • Loading branch information...
1 parent 5ed7e5f commit 944a699b04111525de7ef4bb5a9dbe9217e6a42a Jesse Armand committed Jul 9, 2010
Showing with 1 addition and 2 deletions.
  1. +1 −2 OAToken.m
View
3 OAToken.m
@@ -185,13 +185,12 @@ - (void)setAttribute:(const NSString *)aKey value:(const NSString *)aAttribute {
}
- (NSDictionary *)attributes {
- return [attributes autorelease];
+ return [[attributes copy] autorelease];
}
- (void)setAttributes:(NSDictionary *)theAttributes {
[attributes release];
attributes = [[NSMutableDictionary alloc] initWithDictionary:theAttributes];
-
}
- (BOOL)hasAttributes {

0 comments on commit 944a699

Please sign in to comment.