mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
replace malloc with make_unique
This commit is contained in:
parent
bad9d5e521
commit
4c5f2e41e5
1 changed files with 1 additions and 2 deletions
|
@ -147,8 +147,7 @@ void NativeMessagingServer::ReceiverThread::run()
|
|||
|
||||
while (true) {
|
||||
try {
|
||||
std::unique_ptr<char> buf(
|
||||
static_cast<char *>(malloc(MESSAGE_SIZE)));
|
||||
std::unique_ptr<char> buf = std::make_unique<char>(MESSAGE_SIZE);
|
||||
ipc::message_queue::size_type retSize;
|
||||
unsigned int priority;
|
||||
|
||||
|
|
Loading…
Reference in a new issue