mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-22 22:05:38 +00:00
Merge pull request #2711 from Dushistov/patch-1
Fix usage of `free` for stack variable
This commit is contained in:
commit
b157540ec2
|
@ -213,7 +213,7 @@ static ALWAYS_INLINE void FormatLogMessageAndPrintW(const char* channelName, con
|
||||||
callback(wmessage_buf, wmessage_buflen);
|
callback(wmessage_buf, wmessage_buflen);
|
||||||
|
|
||||||
if (wmessage_buf != wbuf)
|
if (wmessage_buf != wbuf)
|
||||||
std::free(wbuf);
|
std::free(wmessage_buf);
|
||||||
|
|
||||||
if (message_buf != buf)
|
if (message_buf != buf)
|
||||||
std::free(message_buf);
|
std::free(message_buf);
|
||||||
|
|
Loading…
Reference in a new issue