fix:修正一个未置nullptr错误。

This commit is contained in:
taynpg 2025-04-09 16:32:40 +08:00
parent 6ecf0d419a
commit 99607c6721

View File

@ -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_);