From 77b51962b586f150d827c543d581b278caee0c9f Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Sat, 4 Mar 2000 21:22:23 +0000 Subject: Touched this up a bit. 2000-03-04 Christopher James Lahey * TODO: Touched this up a bit. * e-table-group.c, e-table-group-leaf.c: Check for NULL before calling gtk_object_unref or gtk_object_destroy. svn path=/trunk/; revision=2045 --- widgets/table/e-table-group-leaf.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'widgets/table/e-table-group-leaf.c') diff --git a/widgets/table/e-table-group-leaf.c b/widgets/table/e-table-group-leaf.c index 2e939453d7..a56fb3db6b 100644 --- a/widgets/table/e-table-group-leaf.c +++ b/widgets/table/e-table-group-leaf.c @@ -37,8 +37,10 @@ static void etgl_destroy (GtkObject *object) { ETableGroupLeaf *etgl = E_TABLE_GROUP_LEAF(object); - gtk_object_unref(GTK_OBJECT(etgl->subset)); - gtk_object_destroy(GTK_OBJECT(etgl->item)); + if ( etgl->subset ) + gtk_object_unref(GTK_OBJECT(etgl->subset)); + if ( etgl->item ) + gtk_object_destroy(GTK_OBJECT(etgl->item)); if ( GTK_OBJECT_CLASS (etgl_parent_class)->destroy ) GTK_OBJECT_CLASS (etgl_parent_class)->destroy (object); } -- cgit v1.2.3