mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Try resetting m_pConnection to 0 to prevent segfault
This commit is contained in:
parent
fcf2a16aef
commit
8d200d1026
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue