diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-09-15 00:32:07 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-09-15 00:32:07 +0300 |
commit | 57288890689bfa2c2d35882169a539813be621f1 (patch) | |
tree | 8c2886837e997d073906cb85aee38c9d77a8069b /src/main.cpp | |
parent | 53947c9d39440424dcf815ea5df130e833457437 (diff) | |
download | mv-57288890689bfa2c2d35882169a539813be621f1.tar.gz mv-57288890689bfa2c2d35882169a539813be621f1.tar.bz2 mv-57288890689bfa2c2d35882169a539813be621f1.tar.xz mv-57288890689bfa2c2d35882169a539813be621f1.zip |
add RWops leaks reporting.
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 8 |
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; } |