r529 - trunk/code/qcommon

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Fri Jan 27 13:14:02 EST 2006


Author: tma
Date: 2006-01-27 13:14:01 -0500 (Fri, 27 Jan 2006)
New Revision: 529

Modified:
   trunk/code/qcommon/cm_patch.c
   trunk/code/qcommon/cm_polylib.c
Log:
* Fix to a memory leak in CM_ValidateFacet


Modified: trunk/code/qcommon/cm_patch.c
===================================================================
--- trunk/code/qcommon/cm_patch.c	2006-01-26 22:32:00 UTC (rev 528)
+++ trunk/code/qcommon/cm_patch.c	2006-01-27 18:14:01 UTC (rev 529)
@@ -767,6 +767,7 @@
 	w = BaseWindingForPlane( plane,  plane[3] );
 	for ( j = 0 ; j < facet->numBorders && w ; j++ ) {
 		if ( facet->borderPlanes[j] == -1 ) {
+			FreeWinding( w );
 			return qfalse;
 		}
 		Vector4Copy( planes[ facet->borderPlanes[j] ].plane, plane );

Modified: trunk/code/qcommon/cm_polylib.c
===================================================================
--- trunk/code/qcommon/cm_polylib.c	2006-01-26 22:32:00 UTC (rev 528)
+++ trunk/code/qcommon/cm_polylib.c	2006-01-27 18:14:01 UTC (rev 529)
@@ -27,7 +27,7 @@
 
 
 // counters are only bumped when running single threaded,
-// because they are an awefull coherence problem
+// because they are an awful coherence problem
 int	c_active_windings;
 int	c_peak_windings;
 int	c_winding_allocs;




More information about the quake3-commits mailing list