Commit 5c6ae07a authored by Felix Paul Kühne's avatar Felix Paul Kühne

shared library parser: fix runtime exception by removing unnecessary call

parent c5126828
...@@ -66,7 +66,6 @@ NSString *const VLCSharedLibraryParserDeterminedNetserviceAsVLCInstance = @"VLCS ...@@ -66,7 +66,6 @@ NSString *const VLCSharedLibraryParserDeterminedNetserviceAsVLCInstance = @"VLCS
- (NSArray *)downloadAndProcessDataFromServer:(NSString *)hostnamePort - (NSArray *)downloadAndProcessDataFromServer:(NSString *)hostnamePort
{ {
_containerInfo = [[NSMutableArray alloc] init]; _containerInfo = [[NSMutableArray alloc] init];
[_containerInfo removeAllObjects];
_dicoInfo = [[NSMutableDictionary alloc] init]; _dicoInfo = [[NSMutableDictionary alloc] init];
NSString *serverURL = [NSString stringWithFormat:@"http://%@/%@", hostnamePort, kLibraryXmlFile]; NSString *serverURL = [NSString stringWithFormat:@"http://%@/%@", hostnamePort, kLibraryXmlFile];
...@@ -79,7 +78,7 @@ NSString *const VLCSharedLibraryParserDeterminedNetserviceAsVLCInstance = @"VLCS ...@@ -79,7 +78,7 @@ NSString *const VLCSharedLibraryParserDeterminedNetserviceAsVLCInstance = @"VLCS
return [NSArray array]; 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 - (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