X-Git-Url: https://plomlompom.com/repos/foo.html?a=blobdiff_plain;f=src%2Frexit.c;h=0b673af4c2934a2e0457aa91d3c4019d5af60374;hb=6ed13cec71fa9b348f609707c2fc02978609b249;hp=6f14663cb8bbac5caac205177430c1b8ff20a11e;hpb=7290dec4219eaa2325aa00ef6139f715743dba3a;p=plomrogue
diff --git a/src/rexit.c b/src/rexit.c
index 6f14663..0b673af 100644
--- a/src/rexit.c
+++ b/src/rexit.c
@@ -13,6 +13,7 @@
#include "windows.h" /* for Win struct, free_win(), free_winmeta() */
#include "map_objects.h" /* for free_map_objects, free_map_object_defs() */
#include "misc.h" /* for unload_interface_conf() */
+#include "map_object_actions.h" /* for free_map_object_actions() */
@@ -44,17 +45,21 @@ static void cleanup()
{
free_command_db();
}
+ if (cleanup_flags & CLEANUP_MAPOBJACTS)
+ {
+ free_map_object_actions(world.map_obj_acts);
+ }
if (cleanup_flags & CLEANUP_MAP)
{
free(world.map->cells);
}
if (cleanup_flags & CLEANUP_INTERFACE_CONF)
{
- unload_interface_conf(/*&world*/);
+ unload_interface_conf();
}
if (cleanup_flags & CLEANUP_WIN_META)
{
- free_winmeta(world.wmeta);
+ free_winmeta();
}
}