From 99607c672197a1fdea91af17e7962cc73e4512bb Mon Sep 17 00:00:00 2001 From: taynpg Date: Wed, 9 Apr 2025 16:32:40 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E4=BF=AE=E6=AD=A3=E4=B8=80?= =?UTF-8?q?=E4=B8=AA=E6=9C=AA=E7=BD=AEnullptr=E9=94=99=E8=AF=AF=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/client.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/client/client.cpp b/client/client.cpp index 9cd4f96..0aa04ee 100644 --- a/client/client.cpp +++ b/client/client.cpp @@ -1217,6 +1217,7 @@ void CClient::handle_frame(CFrameBuffer* buf) break; } delete[] buf->data_; + buf->data_ = nullptr; msg_info.str = variable_and_reverse_files(msg_info.str); serialize(msg_info, &buf->data_, buf->len_); std::swap(buf->tid_, buf->fid_);