diff options
author | Simon Howard | 2008-05-02 19:18:52 +0000 |
---|---|---|
committer | Simon Howard | 2008-05-02 19:18:52 +0000 |
commit | e33dbd82381ace644f7ac4574a354e5764591b55 (patch) | |
tree | 2ab15f23af499d0e547ae1b2fc9e1406ee9b5049 /src/p_setup.c | |
parent | 3f54daeaa3acf590569cb397eee24731f7de6c17 (diff) | |
download | chocolate-doom-e33dbd82381ace644f7ac4574a354e5764591b55.tar.gz chocolate-doom-e33dbd82381ace644f7ac4574a354e5764591b55.tar.bz2 chocolate-doom-e33dbd82381ace644f7ac4574a354e5764591b55.zip |
Fix up some more code calling Z_Free instead of W_ReleaseLumpNum.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 1135
Diffstat (limited to 'src/p_setup.c')
-rw-r--r-- | src/p_setup.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/p_setup.c b/src/p_setup.c index f692658a..446bba49 100644 --- a/src/p_setup.c +++ b/src/p_setup.c @@ -136,7 +136,7 @@ void P_LoadVertexes (int lump) vertexes = Z_Malloc (numvertexes*sizeof(vertex_t),PU_LEVEL,0); // Load data into cache. - data = W_CacheLumpNum (lump,PU_STATIC); + data = W_CacheLumpNum (lump, PU_STATIC); ml = (mapvertex_t *)data; li = vertexes; @@ -150,7 +150,7 @@ void P_LoadVertexes (int lump) } // Free buffer memory. - Z_Free (data); + W_ReleaseLumpNum(lump); } @@ -194,7 +194,7 @@ void P_LoadSegs (int lump) li->backsector = 0; } - Z_Free (data); + W_ReleaseLumpNum(lump); } @@ -222,7 +222,7 @@ void P_LoadSubsectors (int lump) ss->firstline = SHORT(ms->firstseg); } - Z_Free (data); + W_ReleaseLumpNum(lump); } @@ -256,7 +256,7 @@ void P_LoadSectors (int lump) ss->thinglist = NULL; } - Z_Free (data); + W_ReleaseLumpNum(lump); } @@ -293,7 +293,7 @@ void P_LoadNodes (int lump) } } - Z_Free (data); + W_ReleaseLumpNum(lump); } @@ -348,7 +348,7 @@ void P_LoadThings (int lump) P_SpawnMapThing (mt); } - Z_Free (data); + W_ReleaseLumpNum(lump); } @@ -429,8 +429,8 @@ void P_LoadLineDefs (int lump) else ld->backsector = 0; } - - Z_Free (data); + + W_ReleaseLumpNum(lump); } @@ -460,8 +460,8 @@ void P_LoadSideDefs (int lump) sd->midtexture = R_TextureNumForName(msd->midtexture); sd->sector = §ors[SHORT(msd->sector)]; } - - Z_Free (data); + + W_ReleaseLumpNum(lump); } |