From 68a90caf45a840b06202ca9869c51f048ab6fe40 Mon Sep 17 00:00:00 2001 From: Tim Janik Date: Sat, 28 Feb 1998 22:36:06 +0000 Subject: [PATCH] few checks added -timj few checks added -timj --- gtk/gtkclist.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/gtk/gtkclist.c b/gtk/gtkclist.c index ab29f65401..a6a873cc74 100644 --- a/gtk/gtkclist.c +++ b/gtk/gtkclist.c @@ -380,6 +380,9 @@ gtk_clist_init (GtkCList * clist) GTK_WIDGET_UNSET_FLAGS (clist, GTK_NO_WINDOW); GTK_CLIST_SET_FLAGS (clist, CLIST_FROZEN); + clist->row_mem_chunk = NULL; + clist->cell_mem_chunk = NULL; + clist->rows = 0; clist->row_center_offset = 0; clist->row_height = 0; @@ -423,6 +426,11 @@ gtk_clist_construct (GtkCList * clist, { int i; + g_return_if_fail (clist != NULL); + g_return_if_fail (GTK_IS_CLIST (clist)); + g_return_if_fail (clist->row_mem_chunk == NULL); + + /* initalize memory chunks */ clist->row_mem_chunk = g_mem_chunk_new ("clist row mem chunk", sizeof (GtkCListRow),