summaryrefslogtreecommitdiff
path: root/src/r_data.c
diff options
context:
space:
mode:
authorSimon Howard2008-05-02 19:18:52 +0000
committerSimon Howard2008-05-02 19:18:52 +0000
commite33dbd82381ace644f7ac4574a354e5764591b55 (patch)
tree2ab15f23af499d0e547ae1b2fc9e1406ee9b5049 /src/r_data.c
parent3f54daeaa3acf590569cb397eee24731f7de6c17 (diff)
downloadchocolate-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/r_data.c')
-rw-r--r--src/r_data.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/r_data.c b/src/r_data.c
index 2b11d82c..d03becd5 100644
--- a/src/r_data.c
+++ b/src/r_data.c
@@ -491,7 +491,7 @@ void R_InitTextures (void)
strncpy (name,name_p+i*8, 8);
patchlookup[i] = W_CheckNumForName (name);
}
- Z_Free (names);
+ W_ReleaseLumpName(DEH_String("PNAMES"));
// Load the map texture definitions from textures.lmp.
// The data is contained in one or two lumps,
@@ -603,9 +603,9 @@ void R_InitTextures (void)
Z_Free(patchlookup);
- Z_Free (maptex1);
+ W_ReleaseLumpName(DEH_String("TEXTURE1"));
if (maptex2)
- Z_Free (maptex2);
+ W_ReleaseLumpName(DEH_String("TEXTURE2"));
// Precalculate whatever possible.