mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-18 08:28:32 +01:00
Partial revert of "Core/DB Layer: Fix a memory leak.", mysql library related stuff. Original memory leak fix is still in place.
This commit is contained in:
@@ -68,13 +68,9 @@ MySQLConnection::~MySQLConnection()
|
||||
}
|
||||
|
||||
mysql_close(m_Mysql);
|
||||
MySQL::Thread_End();
|
||||
Unlock(); /// Unlock while we die, how ironic
|
||||
}
|
||||
|
||||
//! Can be called synchronously in DatabaseWorkerPool, in which thread-specific variables initialized in the main thread
|
||||
//! are deallocated.
|
||||
//! Can also be called by worker threads, in which their respective thread-specific variables are deallocated.
|
||||
void MySQLConnection::Close()
|
||||
{
|
||||
/// Only close us if we're not operating
|
||||
|
||||
Reference in New Issue
Block a user