summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-04-15 20:49:26 +0000
committerrubidium <rubidium@openttd.org>2009-04-15 20:49:26 +0000
commit8c68e2488fe8fc1cca823b8338095260b736cccd (patch)
tree6e7260023e614414f894edc8fb88665ce0aa99cc
parentd04ebf2fa5a894f14430d9dc059167140589956f (diff)
downloadopenttd-8c68e2488fe8fc1cca823b8338095260b736cccd.tar.xz
(svn r16066) -Fix: another memory leak.
-rw-r--r--src/openttd.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/openttd.cpp b/src/openttd.cpp
index 2d0bf65a9..367f5175a 100644
--- a/src/openttd.cpp
+++ b/src/openttd.cpp
@@ -702,6 +702,12 @@ int ttd_main(int argc, char *argv[])
/* Reset windowing system, stop drivers, free used memory, ... */
ShutdownGame();
+ free(graphics_set);
+ free(musicdriver);
+ free(sounddriver);
+ free(videodriver);
+ free(blitter);
+
return 0;
}