dealloc mutex and cond in msg_queue

This commit is contained in:
Andre Puschmann 2018-03-08 18:03:16 +01:00
parent 43811e1886
commit 5335f046ff
1 changed files with 3 additions and 0 deletions

View File

@ -56,6 +56,9 @@ public:
~msg_queue()
{
pthread_mutex_destroy(&mutex);
pthread_cond_destroy(&not_empty);
pthread_cond_destroy(&not_full);
delete [] buf;
}