Fixed a lot of memory leaks caused by static globals never getting
deleted and some other objects not getting deleted properly due to missing destructors.
This commit is contained in:
+2
-2
@@ -138,8 +138,8 @@ struct ThreadSlot *g_pUnknownThreadSlot = NULL;
|
||||
* so possibly racing over them is harmless (simply using a stale thread ID, etc). */
|
||||
static RageMutex &GetThreadSlotsLock()
|
||||
{
|
||||
static RageMutex *pLock = smnew RageMutex( "ThreadSlots" );
|
||||
return *pLock;
|
||||
static RageMutex lock( "ThreadSlots" );
|
||||
return lock;
|
||||
}
|
||||
|
||||
static int FindEmptyThreadSlot()
|
||||
|
||||
Reference in New Issue
Block a user