Branch: master

fbf8ee22 2014-12-06 15:09:50 Timothy Pearson
Automated update from Qt3
M src/tools/ntqmap.h
diff --git a/src/tools/ntqmap.h b/src/tools/ntqmap.h
index c8d97fd..3139e7f 100644
--- a/src/tools/ntqmap.h
+++ b/src/tools/ntqmap.h
@@ -644,8 +644,12 @@
 #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