Fix some memory leaks

Free some objects that were allocated with new but not deleted, and in
one case, do not set a pointer to nullptr before deleting, as this
results in a memory leak due to memory allocated not being freed.
This commit is contained in:
Rayyan Ansari
2023-11-06 20:17:06 +00:00
parent 0e4d082361
commit 2b3bba512e
3 changed files with 7 additions and 1 deletions

View File

@ -311,8 +311,8 @@ void DeInit()
MPQueue->detach();
}
MPQueue = nullptr;
delete MPQueue;
MPQueue = nullptr;
}
void SetRecvTimeout(int timeout)