Fix setLineDash: NSZoneRealloc called without saving the return value

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/gnustep_testplant_branch@39277 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Marcian Lytwyn 2016-01-15 01:20:13 +00:00
parent 823354b781
commit cb1fbe251d

View file

@ -500,8 +500,8 @@ static CGFloat default_miter_limit = 10.0;
if (_dash_pattern == NULL)
_dash_pattern = NSZoneMalloc(myZone, count * sizeof(CGFloat));
else
NSZoneRealloc(myZone, _dash_pattern, count * sizeof(CGFloat));
else if (count > _dash_count)
_dash_pattern = NSZoneRealloc(myZone, _dash_pattern, count * sizeof(CGFloat));
_dash_count = count;
_dash_phase = phase;