diff --git a/3rdpart/ZLToolKit b/3rdpart/ZLToolKit index 0c371464..3b333274 160000 --- a/3rdpart/ZLToolKit +++ b/3rdpart/ZLToolKit @@ -1 +1 @@ -Subproject commit 0c37146426d8fb0a6d98472739ec3bcc683922db +Subproject commit 3b333274b6595bb0d09576e9a2c1e4603129b64a diff --git a/src/Common/config.cpp b/src/Common/config.cpp index 0cd509b4..46cdd412 100644 --- a/src/Common/config.cpp +++ b/src/Common/config.cpp @@ -405,6 +405,10 @@ void operator delete(void *ptr) { free(ptr); } +void operator delete(void *ptr, std::size_t) { + free(ptr); +} + void *operator new[](std::size_t size) { auto ret = malloc(size); if (ret) { @@ -416,4 +420,8 @@ void *operator new[](std::size_t size) { void operator delete[](void *ptr) { free(ptr); } + +void operator delete[](void *ptr, std::size_t) { + free(ptr); +} #endif