diff --git a/radiobuttons.go b/radiobuttons.go index f1f66d8..7c95991 100644 --- a/radiobuttons.go +++ b/radiobuttons.go @@ -39,6 +39,7 @@ func NewRadioButtons() *RadioButtons { // Destroy destroys the RadioButtons. func (r *RadioButtons) Destroy() { + delete(radioButtons, r.r) C.uiControlDestroy(r.c) }