summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-09-15 00:32:07 +0300
committerAndrei Karas <akaras@inbox.ru>2013-09-15 00:32:07 +0300
commit57288890689bfa2c2d35882169a539813be621f1 (patch)
tree8c2886837e997d073906cb85aee38c9d77a8069b /src/main.cpp
parent53947c9d39440424dcf815ea5df130e833457437 (diff)
downloadManaVerse-57288890689bfa2c2d35882169a539813be621f1.tar.gz
ManaVerse-57288890689bfa2c2d35882169a539813be621f1.tar.bz2
ManaVerse-57288890689bfa2c2d35882169a539813be621f1.tar.xz
ManaVerse-57288890689bfa2c2d35882169a539813be621f1.zip
add RWops leaks reporting.
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 236847ad1..bec85f4c8 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -34,9 +34,10 @@
#include "utils/mkdir.h"
#endif
#include "utils/paths.h"
+#include "utils/physfscheckutils.h"
+#include "utils/physfstools.h"
#include "utils/physfsrwops.h"
#include "utils/process.h"
-#include "utils/physfstools.h"
#include "utils/xml.h"
#ifdef UNITTESTS
@@ -310,7 +311,12 @@ int main(int argc, char *argv[])
}
delete client;
client = nullptr;
+#ifdef DUMP_LEAKED_RESOURCES
reportRWops();
+#endif
+#ifdef DEBUG_PHYSFS
+ reportPhysfsLeaks();
+#endif
return ret;
}