mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-17 22:50:51 +00:00
when clearing the return strings, it's a good idea to clear them completely
This commit is contained in:
parent
0abe875ca0
commit
ba8e959cf2
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue