diff options
Diffstat (limited to 'source/widgets/widget.c')
-rw-r--r-- | source/widgets/widget.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/widgets/widget.c b/source/widgets/widget.c index 37248f15..c286462f 100644 --- a/source/widgets/widget.c +++ b/source/widgets/widget.c @@ -68,7 +68,7 @@ void widget_draw ( widget *widget, cairo_t *d ) } void widget_free ( widget *widget ) { - if ( widget ) { + if ( widget && widget->free ) { widget->free ( widget ); } } |