fix a memory leak

This commit is contained in:
Robbie Vanbrabant 2016-07-24 17:08:31 +01:00
parent 68201c86f1
commit 6276db2ed3
1 changed files with 1 additions and 0 deletions

View File

@ -39,6 +39,7 @@ func NewRadioButtons() *RadioButtons {
// Destroy destroys the RadioButtons.
func (r *RadioButtons) Destroy() {
delete(radioButtons, r.r)
C.uiControlDestroy(r.c)
}