when clearing the return strings, it's a good idea to clear them completely

This commit is contained in:
Bill Currie 2004-01-18 07:50:50 +00:00
parent 0abe875ca0
commit ba8e959cf2

View file

@ -306,9 +306,11 @@ PR_ClearReturnStrings (progs_t *pr)
{
int i;
for (i = 0; i < PR_RS_SLOTS; i++)
for (i = 0; i < PR_RS_SLOTS; i++) {
if (pr->return_strings[i])
free_string_ref (pr, pr->return_strings[i]);
pr->return_strings[i] = 0;
}
}
int