summaryrefslogtreecommitdiff
path: root/gtk/gtktreedatalist.c
diff options
context:
space:
mode:
authorJonathan Blandford <jrb@redhat.com>2001-11-15 23:46:05 +0000
committerJonathan Blandford <jrb@src.gnome.org>2001-11-15 23:46:05 +0000
commit16049019a8017dc254ec1f97a97b7acee87c0dd0 (patch)
tree7e449f370406be2b7f2447983d39f07b7ff629c9 /gtk/gtktreedatalist.c
parentcea7df47d727ccc9e7026b1fe81cf5b0af8e5798 (diff)
downloadgtk+-16049019a8017dc254ec1f97a97b7acee87c0dd0.tar.gz
maybe fix #64160 Also, forgot to save gtktreeview.h
Thu Nov 15 18:44:33 2001 Jonathan Blandford <jrb@redhat.com> * gtk/gtktreedatalist.c (_gtk_tree_data_list_free): maybe fix #64160 Also, forgot to save gtktreeview.h
Diffstat (limited to 'gtk/gtktreedatalist.c')
-rw-r--r--gtk/gtktreedatalist.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtktreedatalist.c b/gtk/gtktreedatalist.c
index a34ec37bf9..d47874cfe9 100644
--- a/gtk/gtktreedatalist.c
+++ b/gtk/gtktreedatalist.c
@@ -58,9 +58,9 @@ _gtk_tree_data_list_free (GtkTreeDataList *list,
next = tmp->next;
if (g_type_is_a (column_headers [i], G_TYPE_STRING))
g_free ((gchar *) tmp->data.v_pointer);
- else if (g_type_is_a (column_headers [i], G_TYPE_OBJECT))
+ else if (g_type_is_a (column_headers [i], G_TYPE_OBJECT) && tmp->data.v_pointer != NULL)
g_object_unref (G_OBJECT (tmp->data.v_pointer));
- else if (g_type_is_a (column_headers [i], G_TYPE_BOXED))
+ else if (g_type_is_a (column_headers [i], G_TYPE_BOXED) && tmp->data.v_pointer != NULL)
g_boxed_free (column_headers [i], (gpointer) tmp->data.v_pointer);
g_mem_chunk_free (tree_chunk, tmp);