Skip to content

Commit

Permalink
[bugfix] release memory when message is got
Browse files Browse the repository at this point in the history
  • Loading branch information
ChunelFeng committed Jun 23, 2023
1 parent 9d2cf0c commit 90d1054
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/UtilsCtrl/ThreadPool/Queue/UAtomicRingBufferQueue.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ class UAtomicRingBufferQueue : public UQueueObject {
}

value = std::move((*ring_buffer_queue_[head_]));
ring_buffer_queue_[head_].release();
head_ = (head_ + 1) % capacity_;
}
push_cv_.notify_one();
Expand Down

0 comments on commit 90d1054

Please sign in to comment.