Fixed bug am44964 (thread crash on bad database)

This commit is contained in:
David Anderson 2006-09-21 16:54:14 +00:00
parent 98278b7bb5
commit ff8fd747c5

View File

@ -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;
} }