diff --git a/src/osgDB/DatabasePager.cpp b/src/osgDB/DatabasePager.cpp index d2dbd5a6b..5b3811adf 100644 --- a/src/osgDB/DatabasePager.cpp +++ b/src/osgDB/DatabasePager.cpp @@ -41,6 +41,10 @@ DatabasePager::DatabasePager() DatabasePager::~DatabasePager() { + // release the frameBlock and _fileRequestListEmptyBlock incase its holding up thread cancelation. + _frameBlock->release(); + _fileRequestListEmptyBlock->release(); + //std::cout<<"DatabasePager::~DatabasePager()"<release(); - - // then wait for the the thread to stop running. while(isRunning()) {