mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 13:10:52 +00:00
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:
parent
823354b781
commit
cb1fbe251d
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