3
0
Fork 0
forked from suyu/suyu

WORKAROUND: Do not use slab heap while we track down issues with resource management.

This commit is contained in:
bunnei 2021-05-11 10:27:18 -07:00
parent b9f543b29f
commit f2c26443f8

View file

@ -67,11 +67,11 @@ class KAutoObjectWithSlabHeapAndContainer : public Base {
private:
static Derived* Allocate(KernelCore& kernel) {
return kernel.SlabHeap<Derived>().AllocateWithKernel(kernel);
return new Derived(kernel);
}
static void Free(KernelCore& kernel, Derived* obj) {
kernel.SlabHeap<Derived>().Free(obj);
delete obj;
}
public: