summaryrefslogtreecommitdiffstats
path: root/src/core/hle
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2021-05-11 19:27:18 +0200
committerbunnei <bunneidev@gmail.com>2021-05-11 19:27:18 +0200
commitf2c26443f85a3c3fd43137509368ba5c7ab80ee7 (patch)
tree1f164dd34c787ac35ec6e523ab61f767389f3fb6 /src/core/hle
parentaudren (diff)
downloadyuzu-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
Diffstat (limited to '')
-rw-r--r--src/core/hle/kernel/slab_helpers.h4
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: