diff options
author | Dave Davenport <qball@gmpclient.org> | 2016-10-13 17:54:52 +0200 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2016-10-13 17:54:52 +0200 |
commit | 306eeac3febfb5a2084bb9c00b8067bdbed3f031 (patch) | |
tree | b1047af3516fd63a74273f36f562ee6b55e28858 /source | |
parent | 1cd94c27c77f70d4ab2d5751b267370987a38bcd (diff) |
Add some NULL tests to widget test
Diffstat (limited to 'source')
-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 ); } } |