after allocating the treedatalist, zero it to make sure the values are
2001-10-31 Matt Wilson <msw@redhat.com> * gtk/gtktreedatalist.c (_gtk_tree_data_list_alloc): after allocating the treedatalist, zero it to make sure the values are cleared from any garbage that was in this chunk.
This commit is contained in:
@ -39,6 +39,7 @@ _gtk_tree_data_list_alloc (void)
|
||||
G_ALLOC_AND_FREE);
|
||||
|
||||
list = g_chunk_new (GtkTreeDataList, tree_chunk);
|
||||
memset (list, 0, sizeof (GtkTreeDataList));
|
||||
|
||||
return list;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user