X-Git-Url: https://plomlompom.com/repos/test.html?a=blobdiff_plain;f=src%2Frexit.c;h=5640d89fc6065b5033fdf9431431552ab066e96c;hb=e505542d10413b5cf94edda90bdc793a48db9385;hp=2907705af45948398966b77b2cf141bea3ef676c;hpb=6907fb5902bd50d590b6886e6b30090db5b47444;p=plomrogue
diff --git a/src/rexit.c b/src/rexit.c
index 2907705..5640d89 100644
--- a/src/rexit.c
+++ b/src/rexit.c
@@ -10,7 +10,7 @@
#include "map.h" /* for Map struct */
#include "keybindings.h" /* for KeysWinData, KeyBinding structs */
#include "command_db.h" /* for free_command_db() */
-#include "windows.h" /* for Win struct, free_win() */
+#include "windows.h" /* for Win struct, free_win(), free_winmeta() */
#include "map_objects.h" /* for free_item_defs(), free_monster_defs() */
@@ -65,6 +65,10 @@ static void cleanup(struct World * world)
{
free_win(world->wins.keys);
}
+ if (cleanup_flags & CLEANUP_WIN_META)
+ {
+ free_winmeta(world->wins.meta);
+ }
if (cleanup_flags & CLEANUP_MAP_OBJECT_DEFS)
{
free_item_defs(world->item_def);