diff --git a/src/core/tools/qmap.cpp b/src/core/tools/qmap.cpp index d0c04c503..bf1ebf725 100644 --- a/src/core/tools/qmap.cpp +++ b/src/core/tools/qmap.cpp @@ -73,7 +73,8 @@ void QMapData::continueFreeData(int offset) cur = cur->forward[0]; ::free(reinterpret_cast(prev) - offset); } - delete this; + if (this != &shared_null) + delete this; } /*!