home
·
contact
·
privacy
projects
/
plomrogue
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
47ba322
)
Cleaning up at the end to eliminate memory leaks detected by valgrind.
author
Christian Heller
<c.heller@plomlompom.de>
Thu, 2 May 2013 03:32:06 +0000
(
05:32
+0200)
committer
Christian Heller
<c.heller@plomlompom.de>
Thu, 2 May 2013 03:32:06 +0000
(
05:32
+0200)
roguelike.c
patch
|
blob
|
history
diff --git
a/roguelike.c
b/roguelike.c
index 7d535bc9221b7ea446ad2f1128570ade548ad017..6d75aa949ae181b5afd9ac783874905fde314d17 100644
(file)
--- a/
roguelike.c
+++ b/
roguelike.c
@@
-416,5
+416,13
@@
int main () {
update_info (&win_info);
update_log (&win_log, "\nYou wait."); } }
+ free(map.cells);
+ for (key = 0; key <= world.keyswindata->max; key++)
+ free(world.keybindings[key].name);
+ free(world.keybindings);
+ free(world.keyswindata);
+ free(win_info.data);
+ free(win_log.data);
+
endwin();
return 0; }