always free gamedata (this test uses two)

This commit is contained in:
Enno Rehling 2016-03-11 09:45:39 +01:00
parent 0f792e038f
commit 10e67e2107
1 changed files with 1 additions and 0 deletions

View File

@ -11,6 +11,7 @@ static void test_gamedata(CuTest * tc)
data = gamedata_open("test.dat", "wb", 0);
CuAssertPtrNotNull(tc, data);
gamedata_close(data);
free(data);
data = gamedata_open("test.dat", "rb", 0);
CuAssertPtrNotNull(tc, data);
gamedata_close(data);