fix a slight memory leak

This commit is contained in:
Rudolf Polzer 2011-06-05 19:37:50 +02:00 committed by Thomas Debesse
parent 39a8ddd6d9
commit 4d3c983a16

View file

@ -271,8 +271,10 @@ void ParsePatch( qboolean onlyLights ){
// if brush primitives format, we may have some epairs to ignore here
GetToken( qtrue );
if ( g_bBrushPrimit != BPRIMIT_OLDBRUSHES && strcmp( token,"}" ) ) {
// NOTE: we leak that!
ep = ParseEPair();
free( ep->key );
free( ep->value );
free( ep );
}
else{
UnGetToken();