forked from github/server
equipment.test is down to two leaks and one TODO
This commit is contained in:
parent
d84ed1f89d
commit
cb706c2cf2
1 changed files with 7 additions and 1 deletions
|
@ -234,7 +234,13 @@ void equipment_done(void) {
|
||||||
spellbook_clear(eq->spellbook);
|
spellbook_clear(eq->spellbook);
|
||||||
free(eq->spellbook);
|
free(eq->spellbook);
|
||||||
}
|
}
|
||||||
// TODO: items, subsets
|
while (eq->items) {
|
||||||
|
itemdata *next = eq->items->next;
|
||||||
|
free(eq->items->value);
|
||||||
|
free(eq->items);
|
||||||
|
eq->items = next;
|
||||||
|
}
|
||||||
|
// TODO: subsets
|
||||||
free(eq);
|
free(eq);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue