Don't forget to free space allocated for lables.

This commit is contained in:
Jonathan Moore Liles 2008-03-12 15:18:54 -05:00
parent 90a45ba11c
commit 0ffa0144db
1 changed files with 5 additions and 1 deletions

View File

@ -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: