changeset 1509:7eeae6b4bce0

Use newly added functions to plug some memory leaks (not that they matter in one-shot programs like these.)
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 07 Feb 2015 06:35:34 +0200
parents 006b79fc386b
children 8efe8ad78f3b
files mkcitymap.c mkloc.c
diffstat 2 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mkcitymap.c	Sat Feb 07 06:35:01 2015 +0200
+++ b/mkcitymap.c	Sat Feb 07 06:35:34 2015 +0200
@@ -457,6 +457,9 @@
     
     /* Close input and output files */
     fclose(outFile);
+
+    mapBlockFree(map);
+    locFreeMapLocations(&locations);
     
     exit(0);
     return 0;
--- a/mkloc.c	Sat Feb 07 06:35:01 2015 +0200
+++ b/mkloc.c	Sat Feb 07 06:35:34 2015 +0200
@@ -1185,6 +1185,7 @@
     
     fclose(outFile);
     mapBlockFree(worldMap);
+    locFreeMapLocations(&worldLoc);
     
     exit(0);
     return 0;