Fix segfault when deleting lock

This commit is contained in:
Dennis Felsing 2018-08-29 10:32:12 +02:00
parent c009a2184f
commit a63f210a01
2 changed files with 2 additions and 2 deletions

View file

@ -292,8 +292,6 @@ CServer::CServer()
#endif
#if defined (CONF_SQL)
m_GlobalSqlLock = lock();
for (int i = 0; i < MAX_SQLSERVERS; i++)
{
m_apSqlReadServers[i] = 0;

View file

@ -22,6 +22,7 @@
#include <engine/shared/uuid_manager.h>
#include <base/tl/array.h>
#include <base/tl/threading.h>
#include "authmanager.h"
#include "name_ban.h"
@ -92,6 +93,7 @@ class CServer : public IServer
#if defined(CONF_SQL)
lock m_GlobalSqlLock;
CSqlServer *m_apSqlReadServers[MAX_SQLSERVERS];
CSqlServer *m_apSqlWriteServers[MAX_SQLSERVERS];
#endif