From 57288890689bfa2c2d35882169a539813be621f1 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 15 Sep 2013 00:32:07 +0300 Subject: add RWops leaks reporting. --- src/main.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/main.cpp') 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; } -- cgit v1.2.3-60-g2f50