diff options
Diffstat (limited to 'source/widgets/box.c')
-rw-r--r-- | source/widgets/box.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/widgets/box.c b/source/widgets/box.c index 6f5b12de..bb36f292 100644 --- a/source/widgets/box.c +++ b/source/widgets/box.c @@ -202,13 +202,15 @@ static void box_free ( widget *wid ) widget * child = (widget *) iter->data; widget_free ( child ); } - + g_list_free ( b->children ); g_free ( b ); } void box_add ( box *box, widget *child, gboolean expand, gboolean end ) { - if ( box == NULL ) return; + if ( box == NULL ) { + return; + } child->expand = expand; child->end = end; child->parent = WIDGET ( box ); |