Try resetting m_pConnection to 0 to prevent segfault

This commit is contained in:
Dennis Felsing 2018-12-20 09:26:45 +01:00
parent fcf2a16aef
commit 8d200d1026

View file

@ -38,7 +38,10 @@ CSqlServer::~CSqlServer()
if (m_pResults)
delete m_pResults;
if (m_pConnection)
{
delete m_pConnection;
m_pConnection = 0;
}
dbg_msg("sql", "SQL connection disconnected");
}
catch (sql::SQLException &e)