Browse Source

fix: don't use invalid reference after erasing element

Fix #5002
reviewable/pr5010/r1
Anthony Bilinski 7 years ago
parent
commit
1afed5f72e
No known key found for this signature in database
GPG Key ID: 2AA8E0DA1B31FB3C
  1. 1
      src/persistence/smileypack.cpp

1
src/persistence/smileypack.cpp

@ -127,7 +127,6 @@ void SmileyPack::cleanupIconsCache() @@ -127,7 +127,6 @@ void SmileyPack::cleanupIconsCache()
std::shared_ptr<QIcon>& icon = it->second;
if (icon.use_count() == 1) {
it = cachedIcon.erase(it);
icon.reset();
} else {
++it;
}

Loading…
Cancel
Save