light: fix leak of lightsurf->realfacenums
This commit is contained in:
parent
aa10d2da93
commit
c2c3e915e6
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue