From 613453b1095e325149b8d37e5731d415e1d5f9bd Mon Sep 17 00:00:00 2001 From: Mike Kestner Date: Thu, 31 Oct 2002 21:30:57 +0000 Subject: merging the gal-2 branch back to the trunk. merging the gal-2 branch back to the trunk. svn path=/trunk/; revision=18471 --- widgets/table/e-cell-tree.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'widgets/table/e-cell-tree.c') diff --git a/widgets/table/e-cell-tree.c b/widgets/table/e-cell-tree.c index b6d51038cf..d5ccbd2e8c 100644 --- a/widgets/table/e-cell-tree.c +++ b/widgets/table/e-cell-tree.c @@ -40,7 +40,7 @@ #include #include #include -#include +#include #include "e-tree-table-adapter.h" #include "e-tree-model.h" @@ -667,8 +667,13 @@ ect_destroy (GtkObject *object) gtk_object_unref (GTK_OBJECT (ect->subcell)); ect->subcell = NULL; - gdk_pixbuf_unref (ect->open_pixbuf); - gdk_pixbuf_unref (ect->closed_pixbuf); + if (ect->open_pixbuf) + gdk_pixbuf_unref (ect->open_pixbuf); + ect->open_pixbuf = NULL; + + if (ect->closed_pixbuf) + gdk_pixbuf_unref (ect->closed_pixbuf); + ect->closed_pixbuf = NULL; GTK_OBJECT_CLASS (parent_class)->destroy (object); } -- cgit v1.2.3