diff --git a/pc/CODEC2 GUI/CODEC2 GUI/MainForm.cs b/pc/CODEC2 GUI/CODEC2 GUI/MainForm.cs index f12abf5..7766630 100644 --- a/pc/CODEC2 GUI/CODEC2 GUI/MainForm.cs +++ b/pc/CODEC2 GUI/CODEC2 GUI/MainForm.cs @@ -122,6 +122,13 @@ namespace CODEC2_GUI void API_RadioRemoved(Radio radio) { + _radio.SliceAdded -= _radio_SliceAdded; + _radio.SliceRemoved -= _radio_SliceRemoved; + + _radio.Disconnect(); + + _radio = null; + _radioConnected = false; } //*************************************