summaryrefslogtreecommitdiffstats
path: root/qtools/qstring.h
diff options
context:
space:
mode:
Diffstat (limited to 'qtools/qstring.h')
-rw-r--r--qtools/qstring.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/qtools/qstring.h b/qtools/qstring.h
index f955f32..f131446 100644
--- a/qtools/qstring.h
+++ b/qtools/qstring.h
@@ -646,8 +646,11 @@ inline QString::QString() :
//
inline QString::~QString()
{
- if ( d->deref() )
+ if ( d->deref() ) {
+ if ( d == shared_null )
+ shared_null = 0;
d->deleteSelf();
+ }
}
inline QString &QString::operator=( QChar c )