Skip to content

Commit

Permalink
Update src/app/InteractionModelEngine.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: Boris Zbarsky <[email protected]>
  • Loading branch information
2 people authored and erjiaqing committed Dec 11, 2023
1 parent 9700b18 commit 1376562
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/InteractionModelEngine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -973,7 +973,7 @@ void InteractionModelEngine::OnActiveModeNotification(ScopedNodeId aPeer)
for (ReadClient * pListItem = mpActiveReadClientList; pListItem != nullptr;)
{
auto pNextItem = pListItem->GetNextClient();
// It is possible that pListItem is destructed by the app in OnActiveModeNotification.
// It is possible that pListItem is destroyed by the app in OnActiveModeNotification.
// Get the next item before invoking `OnActiveModeNotification`.
if (ScopedNodeId(pListItem->GetPeerNodeId(), pListItem->GetFabricIndex()) == aPeer)
{
Expand Down

0 comments on commit 1376562

Please sign in to comment.