From 93b526d58d3b6e89e3e33527498ae265320b3dcd Mon Sep 17 00:00:00 2001 From: Eduardo Dantas Date: Wed, 18 Sep 2024 11:22:25 -0300 Subject: [PATCH] fix: condition if-statement --- src/server/network/message/outputmessage.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/network/message/outputmessage.cpp b/src/server/network/message/outputmessage.cpp index 68daee2afd9..293cdee0d95 100644 --- a/src/server/network/message/outputmessage.cpp +++ b/src/server/network/message/outputmessage.cpp @@ -66,7 +66,7 @@ OutputMessage_ptr OutputMessagePool::getOutputMessage() { } return { rawPtr, [&allocator](OutputMessage*&ptr) mutable { - if (ptr) { + if (ptr != nullptr) { ptr->~OutputMessage(); allocator.deallocate(ptr, 1); }