X-Git-Url: https://plomlompom.com/repos/test.html?a=blobdiff_plain;f=src%2Fclient%2Fcleanup.c;h=51a307b6af6ddf37a737f07cd8f3fdb11c365339;hb=a9377a5125c28779f812f859564d4f4d0b744e89;hp=f060250a85a717f068284cc74e8381dfeac5df77;hpb=d12efb0addf420adc045cfb96647dff6241310ee;p=plomrogue
diff --git a/src/client/cleanup.c b/src/client/cleanup.c
index f060250..51a307b 100644
--- a/src/client/cleanup.c
+++ b/src/client/cleanup.c
@@ -1,4 +1,9 @@
-/* src/client/cleanup.c */
+/* src/client/cleanup.c
+ *
+ * This file is part of PlomRogue. PlomRogue is licensed under the GPL version 3
+ * or any later version. For details on its copyright, license, and warranties,
+ * see the file NOTICE in the root directory of the PlomRogue source package.
+ */
#include "cleanup.h"
#include /* for endwin() */
@@ -6,7 +11,7 @@
#include /* free() */
#include "../common/readwrite.h" /* try_fclose() */
#include "command_db.h" /* free_command_db() */
-#include "misc.h" /* unload_interface_conf() */
+#include "interface_conf.h" /* unload_interface_conf() */
#include "world.h" /* world global */
@@ -18,8 +23,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 +41,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__);
}
}