year-view: use g_list_foreach
This commit is contained in:
@@ -438,8 +438,7 @@ gcal_year_view_size_allocate (GtkWidget *widget,
|
|||||||
}
|
}
|
||||||
g_list_free (widgets);
|
g_list_free (widgets);
|
||||||
|
|
||||||
for (aux = l2; aux != NULL; aux = g_list_next (aux))
|
g_list_foreach (l2, (GFunc) gtk_widget_destroy, NULL);
|
||||||
gtk_widget_destroy ((GtkWidget*) aux->data);
|
|
||||||
g_list_free (l2);
|
g_list_free (l2);
|
||||||
|
|
||||||
/* clean overflow information */
|
/* clean overflow information */
|
||||||
|
|||||||
Reference in New Issue
Block a user