Commit c332a23d authored by Felix Paul Kühne's avatar Felix Paul Kühne

shared library parser: fix runtime exception by removing unnecessary call

(cherry picked from commit 5c6ae07a)
parent c55f151d
......@@ -66,7 +66,6 @@ NSString *const VLCSharedLibraryParserDeterminedNetserviceAsVLCInstance = @"VLCS
- (NSArray *)downloadAndProcessDataFromServer:(NSString *)hostnamePort
{
_containerInfo = [[NSMutableArray alloc] init];
[_containerInfo removeAllObjects];
_dicoInfo = [[NSMutableDictionary alloc] init];
NSString *serverURL = [NSString stringWithFormat:@"http://%@/%@", hostnamePort, kLibraryXmlFile];
......@@ -79,7 +78,7 @@ NSString *const VLCSharedLibraryParserDeterminedNetserviceAsVLCInstance = @"VLCS
return [NSArray array];
}
return [NSArray arrayWithArray:_containerInfo];
return [_containerInfo copy];
}
- (void)parser:(NSXMLParser *)parser didStartElement:(NSString *)elementName namespaceURI:(NSString *)namespaceURI qualifiedName:(NSString *)qualifiedName attributes:(NSDictionary *)attributeDict
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment