light: fix leak of lightsurf->realfacenums

This commit is contained in:
Eric Wasylishen 2017-03-15 11:02:47 -06:00
parent aa10d2da93
commit c2c3e915e6
2 changed files with 2 additions and 1 deletions

View File

@ -118,7 +118,7 @@ typedef struct {
vec3_t *points; // malloc'ed array of numpoints
vec3_t *normals; // malloc'ed array of numpoints
bool *occluded; // malloc'ed array of numpoints
int *realfacenums;
int *realfacenums; // malloc'ed array of numpoints
/*
raw ambient occlusion amount per sample point, 0-1, where 1 is

View File

@ -2584,6 +2584,7 @@ static void LightFaceShutdown(lightsurf_t *lightsurf)
free(lightsurf->normals);
free(lightsurf->occlusion);
free(lightsurf->occluded);
free(lightsurf->realfacenums);
delete lightsurf->stream;