Skip to content

Commit

Permalink
Don't use an iterator after it's erased.
Browse files Browse the repository at this point in the history
  • Loading branch information
kring committed Oct 9, 2024
1 parent ee4b391 commit 1b0934e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CesiumGltf/include/CesiumGltf/SharedAssetDepot.h
Original file line number Diff line number Diff line change
Expand Up @@ -229,8 +229,8 @@ class SharedAssetDepot : public CesiumUtility::ReferenceCountedThreadSafe<
it != this->deletionCandidates.end();
++it) {
if ((*it)->getUniqueAssetId() == assetId) {
this->deletionCandidates.erase(it);
this->totalDeletionCandidateMemoryUsage -= (*it)->getSizeBytes();
this->deletionCandidates.erase(it);
break;
}
}
Expand Down

0 comments on commit 1b0934e

Please sign in to comment.