diff options
author | Dave Davenport <qball@gmpclient.org> | 2016-09-27 22:38:26 +0200 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2016-09-27 22:38:26 +0200 |
commit | 0da0587087129825f27df4a6229383be892b3bf0 (patch) | |
tree | 975ae918adac281689203cca19a8ae6fb3de42de /source/widget.c | |
parent | 89acc7b6edc80c54d1746348ed02329a08c50b41 (diff) |
Make widget_free work on textbox and scrollbar, use widget specific free.
Diffstat (limited to 'source/widget.c')
-rw-r--r-- | source/widget.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/widget.c b/source/widget.c index 7fc9d957..6d697467 100644 --- a/source/widget.c +++ b/source/widget.c @@ -50,3 +50,9 @@ void widget_draw ( Widget *widget, cairo_t *d ) widget->draw ( widget, d ); } } +void widget_free ( Widget *widget ) +{ + if ( widget ) { + widget->free ( widget ); + } +} |