diff options
Diffstat (limited to 'widgets/e-table/e-table-group.c')
-rw-r--r-- | widgets/e-table/e-table-group.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/widgets/e-table/e-table-group.c b/widgets/e-table/e-table-group.c index 6ae8a25db7..ef89efd9bd 100644 --- a/widgets/e-table/e-table-group.c +++ b/widgets/e-table/e-table-group.c @@ -69,9 +69,12 @@ static void etg_destroy (GtkObject *object) { ETableGroup *etg = E_TABLE_GROUP(object); - gtk_object_unref(GTK_OBJECT(etg->header)); - gtk_object_unref(GTK_OBJECT(etg->full_header)); - gtk_object_unref(GTK_OBJECT(etg->model)); + if ( etg->header ) + gtk_object_unref(GTK_OBJECT(etg->header)); + if ( etg->full_header ) + gtk_object_unref(GTK_OBJECT(etg->full_header)); + if ( etg->model ) + gtk_object_unref(GTK_OBJECT(etg->model)); if ( GTK_OBJECT_CLASS (etg_parent_class)->destroy ) GTK_OBJECT_CLASS (etg_parent_class)->destroy (object); } |