forked from AuroraMiddleware/gtk
Ugh. Don't try to free ints, even if they're stored in pointers.
Mon Feb 9 22:22:19 2004 Matthias Clasen <maclas@gmx.de> * gtk/gtkcellview.c (gtk_cell_view_cell_layout_clear_attributes): Ugh. Don't try to free ints, even if they're stored in pointers.
This commit is contained in:
parent
11ad0f9d65
commit
a42ff49490
@ -1,3 +1,8 @@
|
||||
Mon Feb 9 22:22:19 2004 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* gtk/gtkcellview.c (gtk_cell_view_cell_layout_clear_attributes):
|
||||
Ugh. Don't try to free ints, even if they're stored in pointers.
|
||||
|
||||
2004-02-09 Federico Mena Quintero <federico@ximian.com>
|
||||
|
||||
Fix #132256.
|
||||
|
@ -1,3 +1,8 @@
|
||||
Mon Feb 9 22:22:19 2004 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* gtk/gtkcellview.c (gtk_cell_view_cell_layout_clear_attributes):
|
||||
Ugh. Don't try to free ints, even if they're stored in pointers.
|
||||
|
||||
2004-02-09 Federico Mena Quintero <federico@ximian.com>
|
||||
|
||||
Fix #132256.
|
||||
|
@ -1,3 +1,8 @@
|
||||
Mon Feb 9 22:22:19 2004 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* gtk/gtkcellview.c (gtk_cell_view_cell_layout_clear_attributes):
|
||||
Ugh. Don't try to free ints, even if they're stored in pointers.
|
||||
|
||||
2004-02-09 Federico Mena Quintero <federico@ximian.com>
|
||||
|
||||
Fix #132256.
|
||||
|
@ -1,3 +1,8 @@
|
||||
Mon Feb 9 22:22:19 2004 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* gtk/gtkcellview.c (gtk_cell_view_cell_layout_clear_attributes):
|
||||
Ugh. Don't try to free ints, even if they're stored in pointers.
|
||||
|
||||
2004-02-09 Federico Mena Quintero <federico@ximian.com>
|
||||
|
||||
Fix #132256.
|
||||
|
@ -1,3 +1,8 @@
|
||||
Mon Feb 9 22:22:19 2004 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* gtk/gtkcellview.c (gtk_cell_view_cell_layout_clear_attributes):
|
||||
Ugh. Don't try to free ints, even if they're stored in pointers.
|
||||
|
||||
2004-02-09 Federico Mena Quintero <federico@ximian.com>
|
||||
|
||||
Fix #132256.
|
||||
|
@ -682,6 +682,7 @@ gtk_cell_view_cell_layout_clear_attributes (GtkCellLayout *layout,
|
||||
{
|
||||
GtkCellViewCellInfo *info;
|
||||
GtkCellView *cellview = GTK_CELL_VIEW (layout);
|
||||
GSList *list;
|
||||
|
||||
g_return_if_fail (GTK_IS_CELL_VIEW (cellview));
|
||||
g_return_if_fail (GTK_IS_CELL_RENDERER (renderer));
|
||||
@ -689,7 +690,13 @@ gtk_cell_view_cell_layout_clear_attributes (GtkCellLayout *layout,
|
||||
info = gtk_cell_view_get_cell_info (cellview, renderer);
|
||||
g_return_if_fail (info != NULL);
|
||||
|
||||
g_slist_foreach (info->attributes, (GFunc)g_free, NULL);
|
||||
list = info->attributes;
|
||||
while (list && list->next)
|
||||
{
|
||||
g_free (list->data);
|
||||
list = list->next->next;
|
||||
}
|
||||
|
||||
g_slist_free (info->attributes);
|
||||
info->attributes = NULL;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user