- free all resources before returning (CID 644)
authorKamil Hornicek <kamil.hornicek@reactos.org>
Fri, 21 Nov 2008 14:20:54 +0000 (14:20 +0000)
committerKamil Hornicek <kamil.hornicek@reactos.org>
Fri, 21 Nov 2008 14:20:54 +0000 (14:20 +0000)
svn path=/trunk/; revision=37512

reactos/dll/win32/glu32/libnurbs/nurbtess/monoChain.cc

index 899d598..51438de 100644 (file)
@@ -670,7 +670,8 @@ directedLine* MC_partitionY(directedLine *polygons, sampledLine **retSampledLine
   if(MC_sweepY(total_num_chains, array, ranges))
     {
       loopList->deleteLoopList();
-      free(array); 
+      free(array);
+      free(ranges);
       *retSampledLines = NULL;
       return NULL;
     }