aboutsummaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>2006-04-21 11:00:15 +0000
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>2006-04-21 11:00:15 +0000
commit748a6dedb52d5b6a978efc26c22032f6bb4032fd (patch)
treef209f3cd62e95c9d5ec859323fde86d6baa6c83e /main
parentf58e4c7b0aa0b7246b56e1956e23cf5b41dd6f9c (diff)
downloadenigma2-748a6dedb52d5b6a978efc26c22032f6bb4032fd.tar.gz
enigma2-748a6dedb52d5b6a978efc26c22032f6bb4032fd.zip
fix for memleak check
Diffstat (limited to 'main')
-rw-r--r--main/enigma.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/main/enigma.cpp b/main/enigma.cpp
index f7cf44e0..31b81a3f 100644
--- a/main/enigma.cpp
+++ b/main/enigma.cpp
@@ -105,6 +105,10 @@ int exit_code;
int main(int argc, char **argv)
{
+#ifdef MEMLEAK_CHECK
+ atexit(DumpUnfreed);
+#endif
+
#ifdef OBJECT_DEBUG
atexit(object_dump);
#endif