File tree Expand file tree Collapse file tree 4 files changed +222
-218
lines changed Expand file tree Collapse file tree 4 files changed +222
-218
lines changed Original file line number Diff line number Diff line change @@ -741,13 +741,14 @@ struct HeapInfoDisplay
741
741
{
742
742
int32_t NumHeaps = gc::OSAlloc::NumHeaps;
743
743
744
+ DisplayHeapInfo = new bool [NumHeaps + 1 ]; // Add one for the smart heap
745
+
744
746
// Add one for the smart heap, subtract 1 for not displaying the free portion of the smart heap
745
747
int32_t MemoryUsageArrays = ((NumHeaps + 1 ) * 2 ) - 1 ;
746
748
747
- DisplayHeapInfo = new bool [NumHeaps + 1 ]; // Add one for the smart heap
748
- MemoryUsageBuffer = new char *[MemoryUsageArrays] ;
749
+ char **tempMemoryUsageBuffer = new char *[MemoryUsageArrays];
750
+ MemoryUsageBuffer = tempMemoryUsageBuffer ;
749
751
750
- char **tempMemoryUsageBuffer = MemoryUsageBuffer;
751
752
for (int32_t i = 0 ; i < MemoryUsageArrays; i++)
752
753
{
753
754
tempMemoryUsageBuffer[i] = new char [MEMORY_USAGE_LINE_BUFFER_SIZE];
Original file line number Diff line number Diff line change 5
5
namespace mod {
6
6
7
7
void fixRoomProblems ();
8
+ void clearHeapCorruptionBuffer ();
9
+ void clearMemoryUsageBuffers ();
8
10
9
11
}
You can’t perform that action at this time.
0 commit comments