mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-25 01:41:43 +00:00
If a Sendable like SendableChooser is destroyed and recreated, it leaves a stale object in the Sendable registry. Using this object results in a crash. This patch avoids using the stale object. We should remove stale objects from the global registry upon object destruction, but this fixes the crashing issue for now. Closes #2818. Co-authored-by: Tyler Veness <calcmogul@gmail.com>