chore(Core/Misc): nullptr cleanup (#11467)

This commit is contained in:
Kitzunu
2022-04-21 19:17:20 +02:00
committed by GitHub
parent eb91bbfc56
commit 1501445b0a
23 changed files with 60 additions and 69 deletions

View File

@@ -509,7 +509,7 @@ void ClearOnlineAccounts()
void ShutdownCLIThread(std::thread* cliThread)
{
if (cliThread != nullptr)
if (cliThread)
{
#ifdef _WIN32
// First try to cancel any I/O in the CLI thread
@@ -760,7 +760,7 @@ void AuctionListingRunnable()
void ShutdownAuctionListingThread(std::thread* thread)
{
if (thread != nullptr)
if (thread)
{
thread->join();
delete thread;