mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-04-04 08:25:34 +00:00
[ruamoko] Plug another memory leak
Now running vkgen is leak-free (and, by extension, qwaq-cmd, it seems). I'm really not sure why I used a dynamic array for that case.
This commit is contained in:
parent
8efe8e63d3
commit
9982eb629d
1 changed files with 2 additions and 4 deletions
|
@ -448,10 +448,8 @@ main (int argc, char **argv)
|
|||
COM_InitArgv (qargs->args.size, qargs->args.a);
|
||||
num_sys++;
|
||||
} else {
|
||||
qwaq_thread_t qargs = {};
|
||||
DARRAY_INIT (&qargs.args, 2);
|
||||
DARRAY_APPEND (&qargs.args, this_program);
|
||||
COM_InitArgv (qargs.args.size, qargs.args.a);
|
||||
const char *args[] = { this_program, 0 };
|
||||
COM_InitArgv (1, args);
|
||||
}
|
||||
|
||||
init_qf ();
|
||||
|
|
Loading…
Reference in a new issue