summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2014-12-06 15:09:50 -0600
committerTimothy Pearson <[email protected]>2014-12-06 15:09:50 -0600
commitfbf8ee2262d6b55fdd6844504fb69af25b6d9eac (patch)
tree4f898f95cc533817b8e915aaba09e7ee5929d7c2 /src
parent3aba060d81576d57aeb7d14ab5ed3a7b03b38477 (diff)
downloadtqt3-fbf8ee2262d6b55fdd6844504fb69af25b6d9eac.tar.gz
tqt3-fbf8ee2262d6b55fdd6844504fb69af25b6d9eac.zip
Automated update from Qt3r14.0.0
Diffstat (limited to 'src')
-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