aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/e-table/e-table-group-leaf.c
diff options
context:
space:
mode:
Diffstat (limited to 'widgets/e-table/e-table-group-leaf.c')
-rw-r--r--widgets/e-table/e-table-group-leaf.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/widgets/e-table/e-table-group-leaf.c b/widgets/e-table/e-table-group-leaf.c
index 2e939453d7..a56fb3db6b 100644
--- a/widgets/e-table/e-table-group-leaf.c
+++ b/widgets/e-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);
}