aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--widgets/misc/e-canvas-background.c5
-rw-r--r--widgets/table/e-table.c2
2 files changed, 7 insertions, 0 deletions
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);
}
diff --git a/widgets/table/e-table.c b/widgets/table/e-table.c
index ad8e10aa81..76c66ed074 100644
--- a/widgets/table/e-table.c
+++ b/widgets/table/e-table.c
@@ -1348,6 +1348,8 @@ e_table_get_state_object (ETable *e_table)
int i, j;
state = e_table_state_new();
+ if (state->sort_info)
+ g_object_unref (state->sort_info);
state->sort_info = e_table->sort_info;
g_object_ref(state->sort_info);