equipment.test is down to two leaks and one TODO

This commit is contained in:
Enno Rehling 2016-09-07 21:29:54 +02:00
parent d84ed1f89d
commit cb706c2cf2

View file

@ -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);
} }
} }