From c21f259c8c6184f3a89274d0a388109109f669e3 Mon Sep 17 00:00:00 2001 From: havoc Date: Sun, 20 Dec 2009 06:22:59 +0000 Subject: [PATCH] avoid a permanent memory leak on lightmap allocation in q1bsp - no time to investigate the underlying cause git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9592 d7cf8633-e32d-0410-b094-e92efae38249 --- model_shared.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/model_shared.c b/model_shared.c index 040b1ba0..771aa39b 100644 --- a/model_shared.c +++ b/model_shared.c @@ -2942,7 +2942,7 @@ void Mod_AllocLightmap_Init(mod_alloclightmap_state_t *state, int width, int hei state->width = width; state->height = height; state->currentY = 0; - state->rows = Mem_Alloc(tempmempool, state->height * sizeof(*state->rows)); + state->rows = Mem_Alloc(loadmodel->mempool, state->height * sizeof(*state->rows)); for (y = 0;y < state->height;y++) { state->rows[y].currentX = 0; -- 2.39.2