Skip to content

Commit

Permalink
* Fix to a memory leak in CM_ValidateFacet
Browse files Browse the repository at this point in the history
  • Loading branch information
timangus committed Jan 27, 2006
1 parent b90f082 commit ab29f29
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions code/qcommon/cm_patch.c
Expand Up @@ -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 );
Expand Down
2 changes: 1 addition & 1 deletion code/qcommon/cm_polylib.c
Expand Up @@ -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;
Expand Down

0 comments on commit ab29f29

Please sign in to comment.