From ff8fd747c5c481378bcbb3a795648c7fb7ff0a62 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Thu, 21 Sep 2006 16:54:14 +0000 Subject: [PATCH] Fixed bug am44964 (thread crash on bad database) --- dlls/mysqlx/threading.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dlls/mysqlx/threading.cpp b/dlls/mysqlx/threading.cpp index 7bdf6cce..ddbd2617 100644 --- a/dlls/mysqlx/threading.cpp +++ b/dlls/mysqlx/threading.cpp @@ -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; }