mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-24 05:23:03 +01:00
Fixed the crash that appears after PublicHandle became an inherited class (thus containing vtable).
This commit is contained in:
parent
ae650b596e
commit
916828a19e
@ -65,11 +65,6 @@ namespace Firebird
|
||||
|
||||
ExistenceMutex* PublicHandle::isKnownHandle() const
|
||||
{
|
||||
if (!this)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
ReadLockGuard guard(sync);
|
||||
if (handles->exist(this))
|
||||
{
|
||||
|
@ -380,10 +380,9 @@ public:
|
||||
|
||||
bool checkHandle() const
|
||||
{
|
||||
if (!isKnownHandle())
|
||||
{
|
||||
if (!this || !isKnownHandle())
|
||||
return false;
|
||||
}
|
||||
|
||||
mutex()->release();
|
||||
|
||||
return TypedHandle<type_dbb>::checkHandle();
|
||||
|
Loading…
Reference in New Issue
Block a user