diff --git a/src/jrd/EngineInterface.h b/src/jrd/EngineInterface.h index 44f17ada61..6cb9b85ef6 100644 --- a/src/jrd/EngineInterface.h +++ b/src/jrd/EngineInterface.h @@ -73,6 +73,11 @@ public: return blob; } + void clearHandle() + { + blob = NULL; + } + private: blb* blob; Firebird::RefPtr sAtt; diff --git a/src/jrd/blb.cpp b/src/jrd/blb.cpp index 6d61d2208c..1afd299d57 100644 --- a/src/jrd/blb.cpp +++ b/src/jrd/blb.cpp @@ -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;