From ab29f294951eccc9bc38d34f808264bdb53e8b1e Mon Sep 17 00:00:00 2001 From: Tim Angus Date: Fri, 27 Jan 2006 18:14:01 +0000 Subject: [PATCH] * Fix to a memory leak in CM_ValidateFacet --- code/qcommon/cm_patch.c | 1 + code/qcommon/cm_polylib.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/code/qcommon/cm_patch.c b/code/qcommon/cm_patch.c index 6fe9a751..c29a329a 100644 --- a/code/qcommon/cm_patch.c +++ b/code/qcommon/cm_patch.c @@ -767,6 +767,7 @@ static qboolean CM_ValidateFacet( facet_t *facet ) { 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 ); diff --git a/code/qcommon/cm_polylib.c b/code/qcommon/cm_polylib.c index d2b98a95..f4d6ce85 100644 --- a/code/qcommon/cm_polylib.c +++ b/code/qcommon/cm_polylib.c @@ -27,7 +27,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA // 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;