Skip to content

Commit

Permalink
Fixed memory leaks.
Browse files Browse the repository at this point in the history
  • Loading branch information
Igor Sutton committed Dec 13, 2011
1 parent 9140622 commit 067e4c0
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions TKPost.m
Expand Up @@ -179,7 +179,7 @@ - (void)dealloc


- (NSString *)title - (NSString *)title
{ {
return [title copy]; return [[title copy] autorelease];
} }


- (void)setTitle:(NSString *)aTitle - (void)setTitle:(NSString *)aTitle
Expand Down Expand Up @@ -252,7 +252,7 @@ - (void)dealloc


- (NSString *)text - (NSString *)text
{ {
return [text copy]; return [[text copy] autorelease];
} }


- (void)setText:(NSString *)aText - (void)setText:(NSString *)aText
Expand Down Expand Up @@ -311,7 +311,7 @@ - (void)dealloc


- (NSString *)text - (NSString *)text
{ {
return [text copy]; return [[text copy] autorelease];
} }


- (void)setText:(NSString *)aText - (void)setText:(NSString *)aText
Expand All @@ -324,7 +324,7 @@ - (void)setText:(NSString *)aText


- (NSString *)source - (NSString *)source
{ {
return [source copy]; return [[source copy] autorelease];
} }


- (void)setSource:(NSString *)aSource - (void)setSource:(NSString *)aSource
Expand Down Expand Up @@ -380,7 +380,7 @@ - (void)dealloc


- (NSString *)text - (NSString *)text
{ {
return [text copy]; return [[text copy] autorelease];
} }


- (void)setText:(NSString *)aText - (void)setText:(NSString *)aText
Expand Down Expand Up @@ -449,7 +449,7 @@ - (void)dealloc


- (NSString *)caption - (NSString *)caption
{ {
return [caption copy]; return [[caption copy] autorelease];
} }


- (void)setCaption:(NSString *)aCaption - (void)setCaption:(NSString *)aCaption
Expand Down Expand Up @@ -514,7 +514,7 @@ - (void)dealloc


- (NSString *)caption - (NSString *)caption
{ {
return [caption copy]; return [[caption copy] autorelease];
} }


- (void)setCaption:(NSString *)aCaption - (void)setCaption:(NSString *)aCaption
Expand All @@ -527,7 +527,7 @@ - (void)setCaption:(NSString *)aCaption


- (NSString *)source - (NSString *)source
{ {
return [source copy]; return [[source copy] autorelease];
} }


- (void)setSource:(NSString *)aSource - (void)setSource:(NSString *)aSource
Expand All @@ -540,7 +540,7 @@ - (void)setSource:(NSString *)aSource


- (NSString *)player - (NSString *)player
{ {
return [player copy]; return [[player copy] autorelease];
} }


- (void)setPlayer:(NSString *)aPlayer - (void)setPlayer:(NSString *)aPlayer
Expand Down Expand Up @@ -595,7 +595,7 @@ - (void)dealloc


- (NSString *)caption - (NSString *)caption
{ {
return [caption copy]; return [[caption copy] autorelease];
} }


- (void)setCaption:(NSString *)aCaption - (void)setCaption:(NSString *)aCaption
Expand All @@ -608,7 +608,7 @@ - (void)setCaption:(NSString *)aCaption


- (NSString *)player - (NSString *)player
{ {
return [player copy]; return [[player copy] autorelease];
} }


- (void)setPlayer:(NSString *)aPlayer - (void)setPlayer:(NSString *)aPlayer
Expand Down

0 comments on commit 067e4c0

Please sign in to comment.