home · contact · privacy
At clean-up, free memory of map object definitions, too.
[plomrogue] / src / main.c
index 0ecc10a3dec4b3aa30233cc52df1ffe2e430e595..9b752090be053bad9b7ae978772d947025543ea5 100644 (file)
@@ -103,6 +103,8 @@ int main(int argc, char *argv[])
     world.monster = 0;
     world.item = 0;
     init_map_object_defs(&world, "config/defs");
+    set_cleanup_flag(CLEANUP_MAP_OBJECT_DEFS);
+    exit_err(1, &world, NULL);
 
     /* For interactive mode, try to load world state from savefile. */
     char * err_o = "Trouble loading game (fopen() in main()) / "