diff --git a/src/persistence/smileypack.cpp b/src/persistence/smileypack.cpp index a92a7f4de..03a46ab26 100644 --- a/src/persistence/smileypack.cpp +++ b/src/persistence/smileypack.cpp @@ -127,7 +127,6 @@ void SmileyPack::cleanupIconsCache() std::shared_ptr& icon = it->second; if (icon.use_count() == 1) { it = cachedIcon.erase(it); - icon.reset(); } else { ++it; }