diff --git a/server/src/client/shared/WhisperHandler.cpp b/server/src/client/shared/WhisperHandler.cpp index be8e7e2..ebb76c2 100644 --- a/server/src/client/shared/WhisperHandler.cpp +++ b/server/src/client/shared/WhisperHandler.cpp @@ -172,6 +172,7 @@ void WhisperHandler::handle_session_reset() { this->session_state = SessionState::Uninitialized; if(this->whisper_head_ptr) { ::free(this->whisper_head_ptr); + this->whisper_head_ptr = nullptr; this->whisper_head_capacity = 0; this->whisper_head_length = 0; }