From f8a05d264f77f366bf9f367dc5c59262c190c017 Mon Sep 17 00:00:00 2001 From: megamage Date: Sat, 8 Aug 2009 12:12:56 -0500 Subject: [8318] Deleted as expected runnable objects at related Thread deleting for avoid memory leaks. Author: VladimirMangos [8319] Restore compile PGSQL support after last changes. Author: ApoC --HG-- branch : trunk --- src/shared/Database/DatabasePostgre.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/shared/Database/DatabasePostgre.cpp') diff --git a/src/shared/Database/DatabasePostgre.cpp b/src/shared/Database/DatabasePostgre.cpp index c70067dfdba..8d00285255b 100644 --- a/src/shared/Database/DatabasePostgre.cpp +++ b/src/shared/Database/DatabasePostgre.cpp @@ -366,8 +366,8 @@ void DatabasePostgre::InitDelayThread() assert(!m_delayThread); //New delay thread for delay execute - m_threadBody = new PGSQLDelayThread(this); - m_delayThread = new ACE_Based::Thread(*m_threadBody); + m_threadBody = new PGSQLDelayThread(this); // Will be deleted on m_delayThread delete + m_delayThread = new ACE_Based::Thread(m_threadBody); } void DatabasePostgre::HaltDelayThread() -- cgit v1.2.3