mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-28 17:09:34 -05:00
fixed potential crash due to not updating mPendingDataIterator after deleting map entry
This commit is contained in:
parent
92eb9c5113
commit
971f8e0c12
@ -262,7 +262,11 @@ 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);
|
||||||
mInstance->mPendingData.erase(it) ;
|
|
||||||
|
if(mInstance->mPendingDataIterator == it)
|
||||||
|
mInstance->mPendingDataIterator = mInstance->mPendingData.erase(it) ;
|
||||||
|
else
|
||||||
|
mInstance->mPendingData.erase(it) ;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Connect signal "destroy" */
|
/* Connect signal "destroy" */
|
||||||
|
Loading…
Reference in New Issue
Block a user