From be07b9b92cc5cd35f90db9cb99e881747120ef20 Mon Sep 17 00:00:00 2001 From: Zyntex Date: Sun, 26 Nov 2023 17:11:12 +0100 Subject: [PATCH] dont free cvar after dtor --- src/core/shared/ccon.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/core/shared/ccon.cpp b/src/core/shared/ccon.cpp index 8345367..7bfbe64 100644 --- a/src/core/shared/ccon.cpp +++ b/src/core/shared/ccon.cpp @@ -36,9 +36,6 @@ void c_con::destruct_convar( const char *name ) { utils::memory::call_virtual<0, void>( cvar ); #endif - // not sure if we even need to call this here but it doesnt hurt - wh->portal2->mem_alloc->free( cvar ); - convars.erase( name ); }