summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/slab_helpers.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2021-05-16 07:30:21 +0200
committerGitHub <noreply@github.com>2021-05-16 07:30:21 +0200
commit5a2b15bf75318987d773a2bc69bd6224a28b7939 (patch)
treef213f5b011410022e8e98f7c3905d16d575ed413 /src/core/hle/kernel/slab_helpers.h
parentMerge pull request #6289 from ameerj/oob-blit (diff)
parentcommon: tree: Avoid a nullptr dereference. (diff)
downloadyuzu-5a2b15bf75318987d773a2bc69bd6224a28b7939.tar
yuzu-5a2b15bf75318987d773a2bc69bd6224a28b7939.tar.gz
yuzu-5a2b15bf75318987d773a2bc69bd6224a28b7939.tar.bz2
yuzu-5a2b15bf75318987d773a2bc69bd6224a28b7939.tar.lz
yuzu-5a2b15bf75318987d773a2bc69bd6224a28b7939.tar.xz
yuzu-5a2b15bf75318987d773a2bc69bd6224a28b7939.tar.zst
yuzu-5a2b15bf75318987d773a2bc69bd6224a28b7939.zip
Diffstat (limited to 'src/core/hle/kernel/slab_helpers.h')
-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: