Don't forget to free space allocated for lables.
This commit is contained in:
parent
90a45ba11c
commit
0ffa0144db
|
@ -44,7 +44,11 @@ public:
|
||||||
type( FL_TOGGLE_BUTTON );
|
type( FL_TOGGLE_BUTTON );
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual ~Fl_Flip_Button ( ) { }
|
virtual ~Fl_Flip_Button ( )
|
||||||
|
{
|
||||||
|
if ( _off ) free( _off );
|
||||||
|
if ( _on ) free( _on );
|
||||||
|
}
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue