aboutsummaryrefslogtreecommitdiff
path: root/src/shared/Database/DatabasePostgre.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-08-08 12:12:56 -0500
committermegamage <none@none>2009-08-08 12:12:56 -0500
commitf8a05d264f77f366bf9f367dc5c59262c190c017 (patch)
tree4d02f63f3dddba3b5ff3154832c1c491a894f358 /src/shared/Database/DatabasePostgre.cpp
parent658538a092014f270000932db6b61d4e8efed83f (diff)
[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
Diffstat (limited to 'src/shared/Database/DatabasePostgre.cpp')
-rw-r--r--src/shared/Database/DatabasePostgre.cpp4
1 files changed, 2 insertions, 2 deletions
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()