Properly end mysql connections and libraries on exit.

--HG--
branch : trunk
This commit is contained in:
Machiavelli
2010-08-19 15:47:29 +02:00
parent 7bac588be2
commit 7d915911f9
2 changed files with 3 additions and 0 deletions
@@ -79,6 +79,8 @@ void DatabaseWorkerPool::Close()
{
}
DEBUG_LOG("Synchroneous database threads exited succesfuly.");
mysql_library_end();
}
/*! This function creates a new MySQL connection for every MapUpdate thread
@@ -40,6 +40,7 @@ m_Mysql(NULL)
MySQLConnection::~MySQLConnection()
{
mysql_close(m_Mysql);
}
bool MySQLConnection::Open(const std::string& infoString)