mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-24 05:45:36 +03:00
Fixed bug am44964 (thread crash on bad database)
This commit is contained in:
parent
98278b7bb5
commit
ff8fd747c5
@ -175,7 +175,10 @@ void MysqlThread::RunThread(IThreadHandle *pHandle)
|
||||
m_qrInfo.amxinfo.pQuery = pQuery;
|
||||
m_qrInfo.amxinfo.info.rs = &m_atomicResult;
|
||||
} else {
|
||||
pQuery->FreeHandle();
|
||||
if (pQuery)
|
||||
{
|
||||
pQuery->FreeHandle();
|
||||
}
|
||||
pQuery = NULL;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user