mirror of
https://github.com/TTimo/GtkRadiant.git
synced 2025-01-10 03:51:18 +00:00
fix a slight memory leak
This commit is contained in:
parent
39a8ddd6d9
commit
4d3c983a16
1 changed files with 3 additions and 1 deletions
|
@ -271,8 +271,10 @@ void ParsePatch( qboolean onlyLights ){
|
||||||
// if brush primitives format, we may have some epairs to ignore here
|
// if brush primitives format, we may have some epairs to ignore here
|
||||||
GetToken( qtrue );
|
GetToken( qtrue );
|
||||||
if ( g_bBrushPrimit != BPRIMIT_OLDBRUSHES && strcmp( token,"}" ) ) {
|
if ( g_bBrushPrimit != BPRIMIT_OLDBRUSHES && strcmp( token,"}" ) ) {
|
||||||
// NOTE: we leak that!
|
|
||||||
ep = ParseEPair();
|
ep = ParseEPair();
|
||||||
|
free( ep->key );
|
||||||
|
free( ep->value );
|
||||||
|
free( ep );
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
UnGetToken();
|
UnGetToken();
|
||||||
|
|
Loading…
Reference in a new issue