Skip to content

Commit

Permalink
dont free cvar after dtor
Browse files Browse the repository at this point in the history
  • Loading branch information
hero622 committed Nov 26, 2023
1 parent 6609c70 commit be07b9b
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/core/shared/ccon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
}

Expand Down

0 comments on commit be07b9b

Please sign in to comment.