handle leak in QpMutexCond
Brought to you by:
kybu,
mwaeckerlin
In case people are still using this (as they do in my old company): the class QpMutexCond is missing a destructor, therefore it leaks mutex handles. Simply add the following code to 'qp_synch.cc':
QpMutexCond::~QpMutexCond()
{
QPERR(pthread_cond_destroy(&c_cond));
}
Or, apply the attached patch.
Regards,
Klaus
qp_synch.cc patch