Fixed issues and bugs
-moved system destroy functionality to System structure "destroy()" function -now arrays are properly destroyed (with destructor calling (__xdtor)) -fixed bug which makes BlockAllocator crashing after freeing it's memory -fixed many smaller memory leaks
This commit is contained in:
parent
74179b4fc8
commit
96bbcb9956
5 changed files with 87 additions and 39 deletions
|
|
@ -12,6 +12,12 @@ struct SimpleVector
|
|||
{
|
||||
|
||||
@disable this(this);
|
||||
|
||||
~this() nothrow @nogc
|
||||
{
|
||||
if(data)
|
||||
Mallocator.dispose(data);
|
||||
}
|
||||
|
||||
///Add element to vector
|
||||
void add(ubyte el) nothrow @nogc
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue