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

Clear handle in JBlob when blob is destroyed

This commit is contained in:
alexpeshkoff 2014-08-15 13:08:25 +00:00
parent e10f76cbed
commit 2513cbf1c1
2 changed files with 8 additions and 0 deletions

View File

@ -73,6 +73,11 @@ public:
return blob;
}
void clearHandle()
{
blob = NULL;
}
private:
blb* blob;
Firebird::RefPtr<StableAttachmentPart> sAtt;

View File

@ -2669,6 +2669,9 @@ void blb::destroy(const bool purge_flag)
// in tra_blobs
fb_assert(false);
}
if (blb_interface)
blb_interface->clearHandle();
}
delete blb_pages;