summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Xcode/ManaPlus.xcodeproj/project.pbxproj2
-rw-r--r--src/resources/resourcemanager.cpp2
2 files changed, 3 insertions, 1 deletions
diff --git a/Xcode/ManaPlus.xcodeproj/project.pbxproj b/Xcode/ManaPlus.xcodeproj/project.pbxproj
index e0435a8ca..34b6207b4 100644
--- a/Xcode/ManaPlus.xcodeproj/project.pbxproj
+++ b/Xcode/ManaPlus.xcodeproj/project.pbxproj
@@ -4581,6 +4581,7 @@
OTHER_CPLUSPLUSFLAGS = (
"-DUSE_INTERNALGUICHAN",
"-DUSE_OPENGL",
+ "-DDEBUG_LEAKS",
);
OTHER_LDFLAGS = (
"$(SRCROOT)/libs/libidn.a",
@@ -4642,6 +4643,7 @@
OTHER_CPLUSPLUSFLAGS = (
"-DUSE_INTERNALGUICHAN",
"-DUSE_OPENGL",
+ "-DDEBUG_LEAKS",
);
OTHER_LDFLAGS = (
"$(SRCROOT)/libs/libidn.a",
diff --git a/src/resources/resourcemanager.cpp b/src/resources/resourcemanager.cpp
index 6b87e6cdf..4cc7a4574 100644
--- a/src/resources/resourcemanager.cpp
+++ b/src/resources/resourcemanager.cpp
@@ -182,7 +182,7 @@ void ResourceManager::cleanUp(Resource *const res)
delete res;
#ifdef DEBUG_LEAKS
- cleanOrpahns(true);
+ cleanOrphans(true);
#endif
}