EventSelector - Always set context ptr to null on release
Fixes a bug discussed in lhcb/LHCb!2058 (merged) due to the fact EventSelector::releaseContext
has a possible path through it where the Context
is deleted (which always happens) but the Context*& refCtxt
was not set to nullptr
.
( Note this MR is based off off !955 (merged) so the commits there will also be seen here, until that is merged. I did this as I wanted this to be a separate PR, but there are changes to EventSelector
as well there, so I based this off that branch to avoid merge conflicts. )