mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-04-13 12:51:54 +00:00
[cmem] Allow delete_memsuper on null memsuper
While not done for freeing cmem blocks, it helps clean up shutdown code when the memsuper may not have been created.
This commit is contained in:
parent
999f878b76
commit
a50eaab1e6
1 changed files with 3 additions and 0 deletions
|
@ -413,6 +413,9 @@ new_memsuper (void)
|
|||
void
|
||||
delete_memsuper (memsuper_t *super)
|
||||
{
|
||||
if (!super) {
|
||||
return;
|
||||
}
|
||||
// The block holding the superblock is always the last block in the list
|
||||
while (super->memblocks && super->memblocks->next) {
|
||||
memblock_t *t = super->memblocks;
|
||||
|
|
Loading…
Reference in a new issue