mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-28 08:59:37 -05:00
fixed potential crash due to not updating mPendingDataIterator after deleting map entry
This commit is contained in:
parent
92eb9c5113
commit
971f8e0c12
@ -262,6 +262,10 @@ bool GxsIdDetails::process(const RsGxsId &id, GxsIdDetailsCallbackFunction callb
|
|||||||
if(it != mInstance->mPendingData.end())
|
if(it != mInstance->mPendingData.end())
|
||||||
{
|
{
|
||||||
mInstance->connectObject_locked(object, false);
|
mInstance->connectObject_locked(object, false);
|
||||||
|
|
||||||
|
if(mInstance->mPendingDataIterator == it)
|
||||||
|
mInstance->mPendingDataIterator = mInstance->mPendingData.erase(it) ;
|
||||||
|
else
|
||||||
mInstance->mPendingData.erase(it) ;
|
mInstance->mPendingData.erase(it) ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user