leak: test must free castorder and call cleanup

This commit is contained in:
Enno Rehling 2015-10-14 12:23:58 +02:00
parent bdf4834dc2
commit 469d312339
1 changed files with 2 additions and 0 deletions

View File

@ -55,6 +55,8 @@ static void test_good_dreams(CuTest *tc) {
a_age(&r->attribs);
CuAssertIntEquals_Msg(tc, "good dreams give +1 to allies", 1, get_modifier(u1, SK_MELEE, 11, r, false));
CuAssertIntEquals_Msg(tc, "good dreams have no effect on non-allies", 0, get_modifier(u2, SK_MELEE, 11, r, false));
free_castorder(&co);
test_cleanup();
}
static void test_dreams(CuTest *tc) {