forked from github/server
always free gamedata (this test uses two)
This commit is contained in:
parent
0f792e038f
commit
10e67e2107
|
@ -11,6 +11,7 @@ static void test_gamedata(CuTest * tc)
|
||||||
data = gamedata_open("test.dat", "wb", 0);
|
data = gamedata_open("test.dat", "wb", 0);
|
||||||
CuAssertPtrNotNull(tc, data);
|
CuAssertPtrNotNull(tc, data);
|
||||||
gamedata_close(data);
|
gamedata_close(data);
|
||||||
|
free(data);
|
||||||
data = gamedata_open("test.dat", "rb", 0);
|
data = gamedata_open("test.dat", "rb", 0);
|
||||||
CuAssertPtrNotNull(tc, data);
|
CuAssertPtrNotNull(tc, data);
|
||||||
gamedata_close(data);
|
gamedata_close(data);
|
||||||
|
|
Loading…
Reference in New Issue