Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define _CRTDBG_MAP_ALLOC
- #include <stdlib.h>
- #include <crtdbg.h>
- if (_CrtDumpMemoryLeaks()) {
- std::cout << "Memory leaks!\n";
- }
- else {
- std::cout << "No leaks\n";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement