mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-29 19:47:39 +00:00
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:
parent
3bcb3db150
commit
4368207db7
2 changed files with 7 additions and 2 deletions
|
@ -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];
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue