]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - zone.c
Removed the functions "S_RawSamples_*" and "S_ResampleBuffer16Stereo". They're useles...
[xonotic/darkplaces.git] / zone.c
diff --git a/zone.c b/zone.c
index da47317837585bac23fce699934c5aed92785cb0..bde6fdf137f37c43b393fc0ff3e0edfb190216ae 100644 (file)
--- a/zone.c
+++ b/zone.c
@@ -197,7 +197,8 @@ void _Mem_Free(void *data, const char *filename, int fileline)
        {
 #endif
                pool->realsize -= sizeof(memheader_t) + mem->size + sizeof(int);
-               memset(mem, 0xBF, sizeof(memheader_t) + mem->size + sizeof(int));
+               if (developer.integer)
+                       memset(mem, 0xBF, sizeof(memheader_t) + mem->size + sizeof(int));
                free(mem);
 #if MEMCLUMPING
        }
@@ -348,11 +349,11 @@ void Mem_PrintStats(void)
        }
        Con_Printf("%i memory pools, totalling %i bytes (%.3fMB)\n", count, size, size / 1048576.0);
        if (tempmempool == NULL)
-               Con_Printf("Error: no tempmempool allocated\n");
+               Con_Print("Error: no tempmempool allocated\n");
        else if (tempmempool->chain)
        {
                Con_Printf("%i bytes (%.3fMB) of temporary memory still allocated (Leak!)\n", tempmempool->totalsize, tempmempool->totalsize / 1048576.0);
-               Con_Printf("listing temporary memory allocations:\n");
+               Con_Print("listing temporary memory allocations:\n");
                for (mem = tempmempool->chain;mem;mem = mem->next)
                        Con_Printf("%10i bytes allocated at %s:%i\n", mem->size, mem->filename, mem->fileline);
        }
@@ -363,7 +364,7 @@ void Mem_PrintList(int listallocations)
        mempool_t *pool;
        memheader_t *mem;
        Mem_CheckSentinelsGlobal();
-       Con_Printf("memory pool list:\n"
+       Con_Print("memory pool list:\n"
                   "size    name\n");
        for (pool = poolchain;pool;pool = pool->next)
        {
@@ -395,7 +396,7 @@ void MemList_f(void)
                }
                // drop through
        default:
-               Con_Printf("MemList_f: unrecognized options\nusage: memlist [all]\n");
+               Con_Print("MemList_f: unrecognized options\nusage: memlist [all]\n");
                break;
        }
 }