Playing with valgrind and hexen2.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/branches/wip@3730 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2011-01-30 01:32:30 +00:00
parent 386424a8e6
commit ab865b7e25
15 changed files with 74 additions and 31 deletions

View file

@ -310,7 +310,7 @@ start:
{
i++;
cmd_text[level].buf.cursize -= i;
Q_memcpy (text, text+i, cmd_text[level].buf.cursize);
memmove (text, text+i, cmd_text[level].buf.cursize);
}
// Con_Printf("Found \"%s\"\n", line);
@ -2851,13 +2851,20 @@ void Cmd_Condump_f(void)
void Cmd_Shutdown(void)
{
cmdalias_t *a;
//make sure we get no other execution
int level;
for (level = 0; level < sizeof(cmd_text)/sizeof(cmd_text[0]); level++)
SZ_Clear (&cmd_text[level].buf);
cmd_functions = NULL;
cmd_alias = NULL;
while(cmd_alias)
{
a = cmd_alias;
cmd_alias = a->next;
Z_Free(a->value);
Z_Free(a);
}
}
/*