summaryrefslogtreecommitdiffhomepage
path: root/Public/Kits/System.Core/Heap.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Public/Kits/System.Core/Heap.cxx')
-rw-r--r--Public/Kits/System.Core/Heap.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/Public/Kits/System.Core/Heap.cxx b/Public/Kits/System.Core/Heap.cxx
index 4dfd34e4..55850b1a 100644
--- a/Public/Kits/System.Core/Heap.cxx
+++ b/Public/Kits/System.Core/Heap.cxx
@@ -21,7 +21,10 @@ Heap* Heap::Shared() noexcept {
return heap;
}
-Heap::Heap() { }
+Heap::Heap() {
+ CA_MUST_PASS(HcProcessHeapExists(kInstanceObject, (VoidPtr)this));
+}
+
Heap::~Heap() { delete this; }
void Heap::Delete(HeapPtr me) noexcept {