From 0a8f9771f562beb76dd76ed2a066a66bbf37694d Mon Sep 17 00:00:00 2001 From: JP Rosevear Date: Thu, 20 May 2004 18:38:52 +0000 Subject: only unref the mask if there is one 2004-05-20 JP Rosevear * e-task-widget.c (e_task_widget_construct): only unref the mask if there is one svn path=/trunk/; revision=26016 --- widgets/misc/ChangeLog | 5 +++++ widgets/misc/e-task-widget.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'widgets') diff --git a/widgets/misc/ChangeLog b/widgets/misc/ChangeLog index f8acc6f208..a286d51d87 100644 --- a/widgets/misc/ChangeLog +++ b/widgets/misc/ChangeLog @@ -1,3 +1,8 @@ +2004-05-20 JP Rosevear + + * e-task-widget.c (e_task_widget_construct): only unref the mask + if there is one + 2004-05-19 JP Rosevear * Makefile.am: don't dist the error .h file diff --git a/widgets/misc/e-task-widget.c b/widgets/misc/e-task-widget.c index 8a65d42f29..ab610f77f9 100644 --- a/widgets/misc/e-task-widget.c +++ b/widgets/misc/e-task-widget.c @@ -167,7 +167,8 @@ e_task_widget_construct (ETaskWidget *task_widget, gtk_box_pack_start (GTK_BOX (box), priv->label, TRUE, TRUE, 0); gdk_pixmap_unref (pixmap); - gdk_bitmap_unref (mask); + if (mask) + gdk_bitmap_unref (mask); priv->tooltips = gtk_tooltips_new (); g_object_ref (priv->tooltips); -- cgit