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