MR to fix potential memory leak in the PhotonSelectorAlg.cxx
refering to @dan-guest comment: link
tagging @tstreble @lderamo @atishelm