Skip to content
This repository has been archived by the owner on Feb 12, 2023. It is now read-only.

Commit

Permalink
fix: don't use invalid reference after erasing element
Browse files Browse the repository at this point in the history
Fix #5002
  • Loading branch information
anthonybilinski committed Mar 16, 2018
1 parent 8198940 commit 1afed5f
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/persistence/smileypack.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 1afed5f

Please sign in to comment.