mirror of
https://github.com/ioquake/ioq3.git
synced 2024-11-10 07:11:46 +00:00
* Fix to a memory leak in CM_ValidateFacet
This commit is contained in:
parent
b90f0825bf
commit
ab29f29495
2 changed files with 2 additions and 1 deletions
|
@ -767,6 +767,7 @@ static qboolean CM_ValidateFacet( facet_t *facet ) {
|
||||||
w = BaseWindingForPlane( plane, plane[3] );
|
w = BaseWindingForPlane( plane, plane[3] );
|
||||||
for ( j = 0 ; j < facet->numBorders && w ; j++ ) {
|
for ( j = 0 ; j < facet->numBorders && w ; j++ ) {
|
||||||
if ( facet->borderPlanes[j] == -1 ) {
|
if ( facet->borderPlanes[j] == -1 ) {
|
||||||
|
FreeWinding( w );
|
||||||
return qfalse;
|
return qfalse;
|
||||||
}
|
}
|
||||||
Vector4Copy( planes[ facet->borderPlanes[j] ].plane, plane );
|
Vector4Copy( planes[ facet->borderPlanes[j] ].plane, plane );
|
||||||
|
|
|
@ -27,7 +27,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
|
|
||||||
|
|
||||||
// counters are only bumped when running single threaded,
|
// 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_active_windings;
|
||||||
int c_peak_windings;
|
int c_peak_windings;
|
||||||
int c_winding_allocs;
|
int c_winding_allocs;
|
||||||
|
|
Loading…
Reference in a new issue