fix:修正一个未置nullptr错误。
This commit is contained in:
parent
6ecf0d419a
commit
99607c6721
@ -1217,6 +1217,7 @@ void CClient::handle_frame(CFrameBuffer* buf)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
delete[] buf->data_;
|
delete[] buf->data_;
|
||||||
|
buf->data_ = nullptr;
|
||||||
msg_info.str = variable_and_reverse_files(msg_info.str);
|
msg_info.str = variable_and_reverse_files(msg_info.str);
|
||||||
serialize(msg_info, &buf->data_, buf->len_);
|
serialize(msg_info, &buf->data_, buf->len_);
|
||||||
std::swap(buf->tid_, buf->fid_);
|
std::swap(buf->tid_, buf->fid_);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user