mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-05-31 00:30:57 +00:00
[gamecode] Make modules responsible for freeing resources
It should have been this way all along, and it seems I thought they were when I did rua_gui.c as it already freed its resource block, which would have been a double free (oops). Fixes an invalid write when shutting down progs in qwaq-cmd (relevant change not committed).
This commit is contained in:
parent
9146860f70
commit
70aa970c32
25 changed files with 31 additions and 2 deletions
|
@ -407,6 +407,8 @@ pr_debug_destroy (progs_t *pr, void *_res)
|
|||
Hash_DelTable (res->compunits);
|
||||
|
||||
pr->pr_debug_resources = 0;
|
||||
|
||||
free (res);
|
||||
}
|
||||
|
||||
static file_t *
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue