MCPcopy Create free account
hub / github.com/DentonW/DevIL / DumpUnfreed

Function DumpUnfreed

DevIL/src-ILU/src/ilu_alloc.cpp:77–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75
76
77 void DumpUnfreed(void)
78 {
79 unsigned long TotalSize = 0;
80 char buf[1024];
81 ALLOC_INFO *i = AllocList;
82
83 OutputDebugString("ILU Unfreed Information:\n");
84 while (i != NULL) {
85 sprintf(buf, "%s(%d) : %d bytes unfreed at %d\n", i->file, i->line, i->size, i->address);
86 OutputDebugString(buf);
87 TotalSize += i->size;
88
89 AllocList = i->Next;
90 free(i);
91 i = AllocList;
92 }
93
94 sprintf(buf, "-----------------------------------------------------------\n");
95 OutputDebugString(buf);
96 sprintf(buf, "Total Unfreed: %d bytes\n\n\n", TotalSize);
97 OutputDebugString(buf);
98 }
99
100 void AddToAtexit()
101 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected