From 200071108fa97ea128657539bdcf86f64e1ac83b Mon Sep 17 00:00:00 2001 From: Hans Petter Jansson Date: Tue, 3 Dec 2002 23:09:17 +0000 Subject: Don't leak old sort info. 2002-12-03 Hans Petter Jansson * e-table.c (e_table_get_state_object): Don't leak old sort info. 2002-12-03 Hans Petter Jansson * gal/widgets/e-canvas-background.c (ecb_destroy): Don't leak private structure. svn path=/trunk/; revision=18999 --- widgets/misc/e-canvas-background.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'widgets/misc') diff --git a/widgets/misc/e-canvas-background.c b/widgets/misc/e-canvas-background.c index 4ae2be5e77..77e98b0683 100644 --- a/widgets/misc/e-canvas-background.c +++ b/widgets/misc/e-canvas-background.c @@ -177,6 +177,11 @@ ecb_dispose (GObject *object) gdk_bitmap_unref (ecb->priv->stipple); ecb->priv->stipple = NULL; + if (ecb->priv) { + g_free (ecb->priv); + ecb->priv = NULL; + } + if (G_OBJECT_CLASS (parent_class)->dispose) G_OBJECT_CLASS (parent_class)->dispose (object); } -- cgit