ecere/com/memory manager: Fixed uninitialized size for large memory allocations ...
authorJerome St-Louis <jerome@ecere.com>
Sat, 16 Mar 2013 20:20:35 +0000 (16:20 -0400)
committerJerome St-Louis <jerome@ecere.com>
Sat, 16 Mar 2013 20:20:35 +0000 (16:20 -0400)
- Caused problems on cleared reallocations, e.g. Array::size and the EditBox UndoBuffer

ecere/src/com/instance.ec

index cb37bfa..13d6847 100644 (file)
@@ -1196,6 +1196,7 @@ static void * _mymalloc(unsigned int size)
             TOTAL_MEM += sizeof(class MemBlock) + size;
             OUTSIDE_MEM += sizeof(class MemBlock) + size;
             block.part = null;
+            block.size = size;
          }
       }
    }