]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - model_shared.c
fix for unitialized variable warnings
[xonotic/darkplaces.git] / model_shared.c
index a4b5662e3bde05d8609b5a611e44e09d7bb0cd91..236a5d60649be6b46d65558f05a25082fd9cd12a 100644 (file)
@@ -153,8 +153,6 @@ model_t *Mod_LoadModel (model_t *mod, qboolean crash)
 {
        void    *d;
        unsigned *buf;
-//     byte    stackbuf[1024];         // avoid dirtying the cache heap
-       int             blah = 0;
 
        if (!mod->needload)
        {
@@ -172,7 +170,6 @@ model_t *Mod_LoadModel (model_t *mod, qboolean crash)
 
 // load the file
        buf = (unsigned *)COM_LoadMallocFile (mod->name, false);
-//     buf = (unsigned *)COM_LoadStackFile (mod->name, stackbuf, sizeof(stackbuf), false);
        if (!buf)
        {
                if (crash)
@@ -206,7 +203,7 @@ model_t *Mod_LoadModel (model_t *mod, qboolean crash)
                Mod_LoadBrushModel (mod, buf);
                break;
        }
-       free(buf);
+       qfree(buf);
 
        return mod;
 }