mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-22 10:21:21 +00:00
[ruamoko] Push the forwarded args block
This causes the block to be freed when the forward: handler returns (assuming it's not yet another builtin). This is necessary so calling a lot of forwarded messages in a loop doesn't leak memory (though it will get freed eventually).
This commit is contained in:
parent
f290b115a5
commit
af37b660e8
1 changed files with 1 additions and 0 deletions
|
@ -1276,6 +1276,7 @@ rua___obj_forward (progs_t *pr)
|
|||
P_POINTER (pr, 2) = PR_SetPointer (pr, sel);
|
||||
P_PACKED (pr, pr_va_list_t, 3).count = argc;
|
||||
P_PACKED (pr, pr_va_list_t, 3).list = PR_SetPointer (pr, argv);
|
||||
PR_PushTempString (pr, args_block);
|
||||
PR_CallFunction (pr, imp);
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue