summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/corelib/io/qsettings.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/corelib/io/qsettings.cpp b/src/corelib/io/qsettings.cpp
index 4c19cbf..8612e03 100644
--- a/src/corelib/io/qsettings.cpp
+++ b/src/corelib/io/qsettings.cpp
@@ -223,7 +223,8 @@ QConfFile::QConfFile(const QString &fileName, bool _userPerms)
QConfFile::~QConfFile()
{
- usedHashFunc()->remove(name);
+ if (usedHashFunc())
+ usedHashFunc()->remove(name);
}
ParsedSettingsMap QConfFile::mergedKeyMap() const