fix for memleak check
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>
Fri, 21 Apr 2006 11:00:15 +0000 (11:00 +0000)
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>
Fri, 21 Apr 2006 11:00:15 +0000 (11:00 +0000)
main/enigma.cpp

index f7cf44e..31b81a3 100644 (file)
@@ -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