Browse Source

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

This reverts commit bb77b5d79f.
nce_cpp
bunnei 5 years ago
parent
commit
78853f888a
  1. 4
      src/core/hle/kernel/slab_helpers.h

4
src/core/hle/kernel/slab_helpers.h

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

Loading…
Cancel
Save