You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove mDefaultAdvDelegate in RendezvousParameters.h (project-chip#5255)
`mDefaultAdvDelegate` address is assigned to `mAdvDelegate` and is beeing copied into `RendezvousSession::Init` (https://github.com/project-chip/connectedhomeip/blob/master/src/transport/RendezvousSession.cpp#L49)
But if the caller does not hold the `RendezvousParameters` object, `mDefaultAdvDelegate` is released and `RendezvousSession` is not aware of it so it will continue to use it.
This PR removes `mDefaultAdvDelegate` so the caller is responsible for setting and maintaining the `RendezvousAdvertisementDelegate` if any.
0 commit comments