Actually allocate a NSMutableArray, since that is the expected return type

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39577 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rmottola 2016-03-21 10:01:25 +00:00
parent 6e3a6dc25d
commit 0e7b475917
2 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2016-03-21 Riccardo Mottola <rm@gnu.org>
* Source/NSImage.m
Actually allocate a NSMutableArray, since that is the expected return type.
2016-03-10 Riccardo Mottola <rm@gnu.org>
* Source/NSWorkspace.m

View file

@ -1606,7 +1606,7 @@ static NSSize GSResolutionOfImageRep(NSImageRep *rep)
count = [_reps count];
if (count == 0)
{
return [NSArray array];
return [NSMutableArray array];
}
else
{
@ -1623,7 +1623,7 @@ static NSSize GSResolutionOfImageRep(NSImageRep *rep)
j++;
}
}
return [NSArray arrayWithObjects: repList count: j];
return [NSMutableArray arrayWithObjects: repList count: j];
}
}