summaryrefslogtreecommitdiffstats
path: root/src/tools
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/ntqmap.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/tools/ntqmap.h b/src/tools/ntqmap.h
index c8d97fd59..3139e7fe9 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<Key,T>& operator= ( const TQMap<Key,T>& m );
#ifndef QT_NO_STL