aboutsummaryrefslogtreecommitdiffstats
path: root/code/qcommon/cm_patch.c
diff options
context:
space:
mode:
Diffstat (limited to 'code/qcommon/cm_patch.c')
-rw-r--r--code/qcommon/cm_patch.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/code/qcommon/cm_patch.c b/code/qcommon/cm_patch.c
index 6fe9a75..c29a329 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 );