diff options
author | tma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2006-01-27 18:14:01 +0000 |
---|---|---|
committer | tma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2006-01-27 18:14:01 +0000 |
commit | 4d301ecaa49345f1b2e524dd96f3730577ca378e (patch) | |
tree | 4f970e95917d7b639a3d0a7d947412ea7d0cab75 /code/qcommon/cm_patch.c | |
parent | 3449c746ac25128694f3575122bad212724080cd (diff) | |
download | ioquake3-aero-4d301ecaa49345f1b2e524dd96f3730577ca378e.tar.gz ioquake3-aero-4d301ecaa49345f1b2e524dd96f3730577ca378e.zip |
* Fix to a memory leak in CM_ValidateFacet
git-svn-id: svn://svn.icculus.org/quake3/trunk@529 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code/qcommon/cm_patch.c')
-rw-r--r-- | code/qcommon/cm_patch.c | 1 |
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 ); |