From d02e01c55bc73016678357417cb15c7f84722f25 Mon Sep 17 00:00:00 2001 From: Jeff Hill Date: Mon, 18 Jun 2001 21:12:36 +0000 Subject: [PATCH] fixed use of destroy member function without checking for nill pointer --- src/db/dbServiceIO.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/db/dbServiceIO.cpp b/src/db/dbServiceIO.cpp index 00daf64d9..9ebc9b332 100644 --- a/src/db/dbServiceIO.cpp +++ b/src/db/dbServiceIO.cpp @@ -286,7 +286,9 @@ void dbServiceIO::destroyAllIO ( dbChannelIO & chan ) while ( ( pIO = tmp.get() ) ) { pIO->destroy (); } - chan.dbServicePrivateListOfIO::pBlocker->destroy (); + if ( chan.dbServicePrivateListOfIO::pBlocker ) { + chan.dbServicePrivateListOfIO::pBlocker->destroy (); + } } void dbServiceIO::ioCancel ( dbChannelIO & chan, const cacChannel::ioid &id )