if (l) {
graphics_gc_set_background(gra->gc[0], &l->color);
graphics_gc_set_foreground(gra->gc[0], &l->color);
+ g_free(gra->default_font);
gra->default_font = g_strdup(l->font);
}
graphics_background_gc(gra, gra->gc[0]);
/**
* Deallocate column descriptions.
*/
- current = column_data;
- while( (current = g_list_last(current)) )
- {
- current = g_list_remove(current,current->data);
- }
-
+ g_list_foreach(column_data,(GFunc)g_free,NULL);
+ g_list_free(column_data);
}
/**
* Deallocate column descriptions.
*/
- current_desc = column_desc;
- while( (current_desc = g_list_last(current_desc)) )
- {
- current_desc = g_list_remove(current_desc,current_desc->data);
- }
+ g_list_foreach(column_desc,(GFunc)g_free,NULL);
+ g_list_free(column_desc);
}