VGM Decoder: Change logic of dictionary creation

Metadata logic code should be using this dictionaryWithDictionary method
so that the resulting dictionary is actually immutable, like it claims
to be, rather than simply casting it. Safety coding, all that jazz. Not
really a major issue, just feels right.

Signed-off-by: Christopher Snowhill <kode54@gmail.com>
swiftingly
Christopher Snowhill 2022-05-24 01:09:39 -07:00
parent 8cf37cadf3
commit 872816f056
1 changed files with 1 additions and 1 deletions

View File

@ -187,7 +187,7 @@ static NSString *get_description_tag(const char *description, const char *tag, c
if(![year isEqualToNumber:[NSNumber numberWithInt:0]])
[mutableMetadata setValue:year forKey:@"year"];
NSDictionary *metadata = mutableMetadata;
NSDictionary *metadata = [NSDictionary dictionaryWithDictionary:mutableMetadata];
NSDictionary *package = @{@"properties": properties,
@"metadata": metadata};