diff options
author | Christopher James Lahey <clahey@helixcode.com> | 2000-03-05 05:22:23 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2000-03-05 05:22:23 +0800 |
commit | 77b51962b586f150d827c543d581b278caee0c9f (patch) | |
tree | 4b0e3f02a7418dc0b6509edf9b5115daaf16c5a4 /widgets/e-table/e-table-group.c | |
parent | 9610908b0eb1943e3edb0e85e23f9cfdabd75871 (diff) | |
download | gsoc2013-evolution-77b51962b586f150d827c543d581b278caee0c9f.tar gsoc2013-evolution-77b51962b586f150d827c543d581b278caee0c9f.tar.gz gsoc2013-evolution-77b51962b586f150d827c543d581b278caee0c9f.tar.bz2 gsoc2013-evolution-77b51962b586f150d827c543d581b278caee0c9f.tar.lz gsoc2013-evolution-77b51962b586f150d827c543d581b278caee0c9f.tar.xz gsoc2013-evolution-77b51962b586f150d827c543d581b278caee0c9f.tar.zst gsoc2013-evolution-77b51962b586f150d827c543d581b278caee0c9f.zip |
Touched this up a bit.
2000-03-04 Christopher James Lahey <clahey@helixcode.com>
* 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
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); } |