From 6276db2ed3f7259ef68817be239c26518643a89e Mon Sep 17 00:00:00 2001 From: Robbie Vanbrabant Date: Sun, 24 Jul 2016 17:08:31 +0100 Subject: [PATCH] fix a memory leak --- radiobuttons.go | 1 + 1 file changed, 1 insertion(+) 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) }