mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-23 03:10:04 +08:00
完善内存统计
This commit is contained in:
parent
9c3ec4b4ed
commit
6ccf512367
@ -405,6 +405,10 @@ void operator delete(void *ptr) {
|
|||||||
free(ptr);
|
free(ptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void operator delete(void *ptr, std::size_t) {
|
||||||
|
free(ptr);
|
||||||
|
}
|
||||||
|
|
||||||
void *operator new[](std::size_t size) {
|
void *operator new[](std::size_t size) {
|
||||||
auto ret = malloc(size);
|
auto ret = malloc(size);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
@ -416,4 +420,8 @@ void *operator new[](std::size_t size) {
|
|||||||
void operator delete[](void *ptr) {
|
void operator delete[](void *ptr) {
|
||||||
free(ptr);
|
free(ptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void operator delete[](void *ptr, std::size_t) {
|
||||||
|
free(ptr);
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user