diff options
author | bunnei <bunneidev@gmail.com> | 2021-05-21 02:39:49 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2021-05-21 06:41:52 +0200 |
commit | 7331bb9d8d679e9f53b4888f042a347c23b1eb74 (patch) | |
tree | 2f264501af13d28d177fe291b118bcae1b63a484 /src/core/hle/kernel | |
parent | hle: kernel: hle_ipc: Simplify incoming/outgoing move/copy/domain objects. (diff) | |
download | yuzu-7331bb9d8d679e9f53b4888f042a347c23b1eb74.tar yuzu-7331bb9d8d679e9f53b4888f042a347c23b1eb74.tar.gz yuzu-7331bb9d8d679e9f53b4888f042a347c23b1eb74.tar.bz2 yuzu-7331bb9d8d679e9f53b4888f042a347c23b1eb74.tar.lz yuzu-7331bb9d8d679e9f53b4888f042a347c23b1eb74.tar.xz yuzu-7331bb9d8d679e9f53b4888f042a347c23b1eb74.tar.zst yuzu-7331bb9d8d679e9f53b4888f042a347c23b1eb74.zip |
Diffstat (limited to 'src/core/hle/kernel')
-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 d0f7f084b..0c5995db0 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 new Derived(kernel); + return kernel.SlabHeap<Derived>().AllocateWithKernel(kernel); } static void Free(KernelCore& kernel, Derived* obj) { - delete obj; + kernel.SlabHeap<Derived>().Free(obj); } public: |