diff options
author | bunnei <bunneidev@gmail.com> | 2021-05-11 19:27:18 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2021-05-11 19:27:18 +0200 |
commit | f2c26443f85a3c3fd43137509368ba5c7ab80ee7 (patch) | |
tree | 1f164dd34c787ac35ec6e523ab61f767389f3fb6 | |
parent | audren (diff) | |
download | yuzu-f2c26443f85a3c3fd43137509368ba5c7ab80ee7.tar yuzu-f2c26443f85a3c3fd43137509368ba5c7ab80ee7.tar.gz yuzu-f2c26443f85a3c3fd43137509368ba5c7ab80ee7.tar.bz2 yuzu-f2c26443f85a3c3fd43137509368ba5c7ab80ee7.tar.lz yuzu-f2c26443f85a3c3fd43137509368ba5c7ab80ee7.tar.xz yuzu-f2c26443f85a3c3fd43137509368ba5c7ab80ee7.tar.zst yuzu-f2c26443f85a3c3fd43137509368ba5c7ab80ee7.zip |
-rw-r--r-- | src/core/hle/kernel/slab_helpers.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/kernel/slab_helpers.h b/src/core/hle/kernel/slab_helpers.h index 0c5995db0..d0f7f084b 100644 --- a/src/core/hle/kernel/slab_helpers.h +++ b/src/core/hle/kernel/slab_helpers.h @@ -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: |