From 2513cbf1c1bb2843236be8ba70258b91bc607cf2 Mon Sep 17 00:00:00 2001 From: alexpeshkoff Date: Fri, 15 Aug 2014 13:08:25 +0000 Subject: [PATCH] Clear handle in JBlob when blob is destroyed --- src/jrd/EngineInterface.h | 5 +++++ src/jrd/blb.cpp | 3 +++ 2 files changed, 8 insertions(+) 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;