From 0e03ca871750c0e0240f1adc5e74c09ac361e778 Mon Sep 17 00:00:00 2001 From: Luna Date: Fri, 4 Oct 2024 13:01:36 +0200 Subject: [PATCH] Always free own pointer (without postblits) --- source/numem/collections/vector.d | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/numem/collections/vector.d b/source/numem/collections/vector.d index 1ec8a2a..36f8fe2 100644 --- a/source/numem/collections/vector.d +++ b/source/numem/collections/vector.d @@ -115,10 +115,10 @@ public: nogc_delete(this.memory[item]); } } - - // Free the pointer - free(cast(void*)this.memory); } + + // Free the pointer + free(cast(void*)this.memory); } this.memory = null;