8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-24 01:23:03 +01:00

Fixed the crash that appears after PublicHandle became an inherited class (thus containing vtable).

This commit is contained in:
dimitr 2012-12-22 12:30:13 +00:00
parent ae650b596e
commit 916828a19e
2 changed files with 2 additions and 8 deletions

View File

@ -65,11 +65,6 @@ namespace Firebird
ExistenceMutex* PublicHandle::isKnownHandle() const
{
if (!this)
{
return NULL;
}
ReadLockGuard guard(sync);
if (handles->exist(this))
{

View File

@ -380,10 +380,9 @@ public:
bool checkHandle() const
{
if (!isKnownHandle())
{
if (!this || !isKnownHandle())
return false;
}
mutex()->release();
return TypedHandle<type_dbb>::checkHandle();