yuzu-emu
/
yuzu
Archived
1
0
Fork 0

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

This reverts commit f2c26443f8.
This commit is contained in:
bunnei 2021-05-20 17:39:49 -07:00
parent f4fe71c1c9
commit 7331bb9d8d
1 changed files with 2 additions and 2 deletions

View File

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