Author: mlytwyn
Date: Fri Jan 15 02:20:13 2016
New Revision: 39277

URL: http://svn.gna.org/viewcvs/gnustep?rev=39277&view=rev
Log:
Fix setLineDash: NSZoneRealloc called without saving the return value

Modified:
    libs/gui/branches/gnustep_testplant_branch/Source/NSBezierPath.m

Modified: libs/gui/branches/gnustep_testplant_branch/Source/NSBezierPath.m
URL: 
http://svn.gna.org/viewcvs/gnustep/libs/gui/branches/gnustep_testplant_branch/Source/NSBezierPath.m?rev=39277&r1=39276&r2=39277&view=diff
==============================================================================
--- libs/gui/branches/gnustep_testplant_branch/Source/NSBezierPath.m    
(original)
+++ libs/gui/branches/gnustep_testplant_branch/Source/NSBezierPath.m    Fri Jan 
15 02:20:13 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

Reply via email to