mirror of
https://github.com/fabiangreffrath/woof.git
synced 2025-09-23 03:52:12 -04:00
prevent memory leak on repeated calls of R_InitTranMap()
This commit is contained in:
parent
ad6684b7c0
commit
1a925af4e1
@ -883,7 +883,10 @@ void R_InitTranMap(int progress)
|
||||
} cache;
|
||||
FILE *cachefp = fopen(fname,"r+b");
|
||||
|
||||
if (main_tranmap == NULL) // [FG] prevent memory leak
|
||||
{
|
||||
main_tranmap = Z_Malloc(256*256, PU_STATIC, 0); // killough 4/11/98
|
||||
}
|
||||
|
||||
// Use cached translucency filter if it's available
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user