Fixed duplicated appcast item properties

Corrected scope of per-node objects
This commit is contained in:
Kornel Lesiński committed 2016-02-18 19:29:05 +01:00
1 parent 2668d18266
commit 9671f7f52d
1 file changed
+5 -5
+5 -5
View File
@@ -135,14 +135,14 @@
return nil;
}
NSEnumerator *nodeEnum = [xmlItems objectEnumerator];
NSXMLNode *node;
NSMutableDictionary *nodesDict = [NSMutableDictionary dictionary];
NSMutableDictionary *dict = [NSMutableDictionary dictionary];
NSMutableArray *appcastItems = [NSMutableArray array];
NSEnumerator *nodeEnum = [xmlItems objectEnumerator];
NSXMLNode *node;
while((node = [nodeEnum nextObject])) {
NSMutableDictionary *nodesDict = [NSMutableDictionary dictionary];
NSMutableDictionary *dict = [NSMutableDictionary dictionary];
// First, we'll "index" all the first-level children of this appcast item so we can pick them out by language later.
if ([[node children] count]) {
node = [node childAtIndex:0];