fix a memory leak
This commit is contained in:
parent
68201c86f1
commit
6276db2ed3
|
@ -39,6 +39,7 @@ func NewRadioButtons() *RadioButtons {
|
|||
|
||||
// Destroy destroys the RadioButtons.
|
||||
func (r *RadioButtons) Destroy() {
|
||||
delete(radioButtons, r.r)
|
||||
C.uiControlDestroy(r.c)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue