Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix a nasty memory leak

  • Loading branch information...
commit 784d4e4baec4b5f78ea9af269f42d6c3f3eaa494 1 parent 3dfe73d
@mronge mronge authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 Source/CTCoreMessage.m
View
4 Source/CTCoreMessage.m
@@ -792,7 +792,9 @@ - (NSArray *)_stringArrayFromClist:(clist *)list {
for(iter = clist_begin(list); iter != NULL; iter = clist_next(iter)) {
string = clist_content(iter);
- [stringSet addObject:[[NSString alloc] initWithUTF8String:string]];
+ NSString *strObj = [[NSString alloc] initWithUTF8String:string];
+ [stringSet addObject:strObj];
+ [strObj release];
}
return stringSet;
Please sign in to comment.
Something went wrong with that request. Please try again.