year-view: use g_list_foreach

This commit is contained in:
Erick Pérez Castellanos
2015-01-07 13:08:51 -05:00
parent 2d93d0a939
commit 55bb938127
+1 -2
View File
@@ -438,8 +438,7 @@ gcal_year_view_size_allocate (GtkWidget *widget,
}
g_list_free (widgets);
for (aux = l2; aux != NULL; aux = g_list_next (aux))
gtk_widget_destroy ((GtkWidget*) aux->data);
g_list_foreach (l2, (GFunc) gtk_widget_destroy, NULL);
g_list_free (l2);
/* clean overflow information */