diff --git a/queue.cpp b/queue.cpp index d6993fef..752945f6 100644 --- a/queue.cpp +++ b/queue.cpp @@ -427,6 +427,8 @@ byte * ByteQueue::CreatePutSpace(size_t &size) ByteQueue & ByteQueue::operator=(const ByteQueue &rhs) { + if(this == &rhs) return *this; + Destroy(); CopyFrom(rhs); return *this;