[8318] Deleted as expected runnable objects at related Thread deleting for avoid memory leaks.

This commit is contained in:
VladimirMangos 2009-08-05 20:21:25 +04:00
parent dc8bf0f7e7
commit 0f364bf00a
7 changed files with 30 additions and 15 deletions

View file

@ -424,8 +424,8 @@ void DatabaseMysql::InitDelayThread()
assert(!m_delayThread);
//New delay thread for delay execute
m_threadBody = new MySQLDelayThread(this);
m_delayThread = new ACE_Based::Thread(*m_threadBody);
m_threadBody = new MySQLDelayThread(this); // will deleted at m_delayThread delete
m_delayThread = new ACE_Based::Thread(m_threadBody);
}
void DatabaseMysql::HaltDelayThread()