From fbf8ee2262d6b55fdd6844504fb69af25b6d9eac Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Sat, 6 Dec 2014 15:09:50 -0600 Subject: Automated update from Qt3 --- src/tools/ntqmap.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/tools/ntqmap.h b/src/tools/ntqmap.h index c8d97fd5..3139e7fe 100644 --- a/src/tools/ntqmap.h +++ b/src/tools/ntqmap.h @@ -644,8 +644,12 @@ public: #endif ~TQMap() { - if ( sh->deref() ) - delete sh; + if ( sh ) { + if ( sh->deref() ) { + delete sh; + sh = 0L; + } + } } TQMap& operator= ( const TQMap& m ); #ifndef QT_NO_STL -- cgit v1.2.3