mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-25 06:15:37 +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.pQuery = pQuery;
|
||||||
m_qrInfo.amxinfo.info.rs = &m_atomicResult;
|
m_qrInfo.amxinfo.info.rs = &m_atomicResult;
|
||||||
} else {
|
} else {
|
||||||
|
if (pQuery)
|
||||||
|
{
|
||||||
pQuery->FreeHandle();
|
pQuery->FreeHandle();
|
||||||
|
}
|
||||||
pQuery = NULL;
|
pQuery = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user