X-Git-Url: https://plomlompom.com/repos/foo.html?a=blobdiff_plain;f=src%2Fclient%2Fcleanup.c;h=f4b97bfe6cef34c1aa0bfa721a22675ba48581a7;hb=28d6fed30bc0501d5452c7fbdf41125ea8bef318;hp=7611139a65b66e56190660c0d05bf262e884bad6;hpb=be8c57c7e1de5962913f849b862faae01bead264;p=plomrogue
diff --git a/src/client/cleanup.c b/src/client/cleanup.c
index 7611139..f4b97bf 100644
--- a/src/client/cleanup.c
+++ b/src/client/cleanup.c
@@ -18,8 +18,8 @@ static uint32_t cleanup_flags = 0x0000;
extern void cleanup()
{
- char * f_name = "cleanup()";
free(world.map.cells);
+ free(world.mem_map);
free(world.log);
free(world.player_inventory);
if (cleanup_flags & CLEANUP_INTERFACE)
@@ -36,11 +36,11 @@ extern void cleanup()
}
if (cleanup_flags & CLEANUP_SERVER_IN)
{
- try_fclose(world.file_server_in, f_name);
+ try_fclose(world.file_server_in, __func__);
}
if (cleanup_flags & CLEANUP_SERVER_OUT)
{
- try_fclose(world.file_server_out, f_name);
+ try_fclose(world.file_server_out, __func__);
}
}