From 16a19429752e012a028276bdcb9acffc224c6e3d Mon Sep 17 00:00:00 2001 From: Dennis Brakhane Date: Sun, 23 Nov 2025 16:38:54 +0100 Subject: [PATCH] fix typo in #1322 (#1323) --- WickedEngine/wiAllocator.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WickedEngine/wiAllocator.h b/WickedEngine/wiAllocator.h index 965d46e66..ca5f8ae57 100644 --- a/WickedEngine/wiAllocator.h +++ b/WickedEngine/wiAllocator.h @@ -266,7 +266,7 @@ namespace wi::allocator virtual void init_refcount(void* ptr) = 0; virtual uint32_t get_refcount(void* ptr) = 0; virtual uint32_t inc_refcount(void* ptr) = 0; - virtual uint32_t dec_refcount(void* ptr, bool destruct_on_zero = false) = 0; + virtual uint32_t dec_refcount(void* ptr, bool destruct_on_zero = true) = 0; virtual uint32_t get_refcount_weak(void* ptr) = 0; virtual uint32_t inc_refcount_weak(void* ptr) = 0; virtual uint32_t dec_refcount_weak(void* ptr) = 0;