mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-25 14:50:58 +00:00
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:
parent
b8eb05ec70
commit
aa52dd4dbb
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue