adium 5462:0c51e1c6487d: Fixed another leak in STTwitterAPIWrapp...
commits at adium.im
commits at adium.im
Fri May 3 00:32:46 UTC 2013
details: http://hg.adium.im/adium/rev/0c51e1c6487d
revision: 5462:0c51e1c6487d
branch: adium-1.6
author: Thijs Alkemade <me at thijsalkema.de>
date: Fri May 03 02:31:52 2013 +0200
Fixed another leak in STTwitterAPIWrapper.m.
diffs (19 lines):
diff -r a671815879ad -r 0c51e1c6487d Plugins/Twitter Plugin/STTwitter/STTwitterAPIWrapper.m
--- a/Plugins/Twitter Plugin/STTwitter/STTwitterAPIWrapper.m Fri May 03 01:40:42 2013 +0200
+++ b/Plugins/Twitter Plugin/STTwitter/STTwitterAPIWrapper.m Fri May 03 02:31:52 2013 +0200
@@ -436,13 +436,14 @@
requestHandler = [[^(id response) {
if (response) {
[ids addObjectsFromArray:[response objectForKey:@"users"]];
- cursor = [[response objectForKey:@"next_cursor_str"] copy];
+ [cursor release]; cursor = [[response objectForKey:@"next_cursor_str"] copy];
[d setObject:cursor forKey:@"cursor"];
}
if ([cursor isEqualToString:@"0"]) {
successBlock(removeNull(ids));
[ids release]; ids = nil;
+ [cursor release]; cursor = nil;
} else {
[_oauth getResource:resource parameters:d successBlock:requestHandler
errorBlock:errorBlock];
More information about the commits
mailing list