mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 19:48:20 +02:00
AllocTyped fix when leak check is disabled
This commit is contained in:
parent
f2ee292969
commit
09c909567c
1 changed files with 12 additions and 0 deletions
|
@ -259,6 +259,18 @@ namespace System
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
public void* AllocTyped(Type type, int size, int align)
|
||||||
|
{
|
||||||
|
if ((DestructorHandling != .Ignore) && (type.HasDestructor))
|
||||||
|
{
|
||||||
|
if (DestructorHandling == .Fail)
|
||||||
|
Runtime.FatalError("Destructor not allowed");
|
||||||
|
return AllocWithDtor(size, align);
|
||||||
|
}
|
||||||
|
|
||||||
|
return Alloc(size, align);
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
[SkipCall]
|
[SkipCall]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue