From 0ffa0144dbc0135c0509bc8e0d89ae992d5ce643 Mon Sep 17 00:00:00 2001 From: Jonathan Moore Liles Date: Wed, 12 Mar 2008 15:18:54 -0500 Subject: [PATCH] Don't forget to free space allocated for lables. --- Fl_Flip_Button.H | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Fl_Flip_Button.H b/Fl_Flip_Button.H index 7ed3a23..fd59429 100644 --- a/Fl_Flip_Button.H +++ b/Fl_Flip_Button.H @@ -44,7 +44,11 @@ public: type( FL_TOGGLE_BUTTON ); } - virtual ~Fl_Flip_Button ( ) { } + virtual ~Fl_Flip_Button ( ) + { + if ( _off ) free( _off ); + if ( _on ) free( _on ); + } protected: