[RCF::getRootMutex] Memory Leak ?
Posted: Tue Jan 14, 2014 9:26 am
Original:
My way:
Code: Select all
Mutex & getRootMutex()
{
static Mutex * gpRootMutex = new Mutex;
return *gpRootMutex;
}
Code: Select all
Mutex gRootMutex;
Mutex & getRootMutex()
{
return gRootMutex;
}