Fix setLineDash: NSZoneRealloc called without saving the return value

Cherrypicking mlytwyn's r39277 (Testplant branch).

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39286 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Ivan Vučica 2016-01-17 21:36:12 +00:00
parent ba42ad0333
commit d2760ebc1f

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;