aboutsummaryrefslogtreecommitdiffstats
path: root/widgets
diff options
context:
space:
mode:
authorChris Toshok <toshok@ximian.com>2002-12-05 06:40:41 +0800
committerChris Toshok <toshok@src.gnome.org>2002-12-05 06:40:41 +0800
commit31002ecdfa66ba10a8d12f9192fd3f95df1d68ec (patch)
treef3dcf065721c5ecc01d807e8315b20897f0e60f0 /widgets
parentaef8f713aed7c675178115bfc482a749dc7ff845 (diff)
downloadgsoc2013-evolution-31002ecdfa66ba10a8d12f9192fd3f95df1d68ec.tar.gz
gsoc2013-evolution-31002ecdfa66ba10a8d12f9192fd3f95df1d68ec.tar.zst
gsoc2013-evolution-31002ecdfa66ba10a8d12f9192fd3f95df1d68ec.zip
guard against multiple calls.
2002-12-04 Chris Toshok <toshok@ximian.com> * gal/widgets/e-canvas-background.c (ecb_dispose): guard against multiple calls. svn path=/trunk/; revision=19009
Diffstat (limited to 'widgets')
-rw-r--r--widgets/misc/e-canvas-background.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/widgets/misc/e-canvas-background.c b/widgets/misc/e-canvas-background.c
index 77e98b0683..d2d68d180f 100644
--- a/widgets/misc/e-canvas-background.c
+++ b/widgets/misc/e-canvas-background.c
@@ -173,11 +173,11 @@ ecb_dispose (GObject *object)
{
ECanvasBackground *ecb = E_CANVAS_BACKGROUND (object);
- if (ecb->priv->stipple)
- gdk_bitmap_unref (ecb->priv->stipple);
- ecb->priv->stipple = NULL;
-
if (ecb->priv) {
+ if (ecb->priv->stipple)
+ gdk_bitmap_unref (ecb->priv->stipple);
+ ecb->priv->stipple = NULL;
+
g_free (ecb->priv);
ecb->priv = NULL;
}