Author: ivucica
Date: Sun Jan 17 22:36:12 2016
New Revision: 39286
URL: http://svn.gna.org/viewcvs/gnustep?rev=39286&view=rev
Log:
Fix setLineDash: NSZoneRealloc called without saving the return value
Cherrypicking mlytwyn's r39277 (Testplant branch).
Modified:
libs/gui/trunk/Source/NSBezierPath.m
Modified: libs/gui/trunk/Source/NSBezierPath.m
URL:
http://svn.gna.org/viewcvs/gnustep/libs/gui/trunk/Source/NSBezierPath.m?rev=39286&r1=39285&r2=39286&view=diff
==============================================================================
--- libs/gui/trunk/Source/NSBezierPath.m (original)
+++ libs/gui/trunk/Source/NSBezierPath.m Sun Jan 17 22:36:12 2016
@@ -500,8 +500,8 @@
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;
_______________________________________________
Gnustep-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/gnustep-cvs