aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--widgets/table/e-table-specification.c1
-rw-r--r--widgets/table/e-table-utils.c4
-rw-r--r--widgets/table/e-table.c1
3 files changed, 3 insertions, 3 deletions
diff --git a/widgets/table/e-table-specification.c b/widgets/table/e-table-specification.c
index 53306a1a52..e289ad2987 100644
--- a/widgets/table/e-table-specification.c
+++ b/widgets/table/e-table-specification.c
@@ -248,7 +248,6 @@ e_table_specification_load_from_node (ETableSpecification *specification,
if (!strcmp (children->name, "ETableColumn")) {
ETableColumnSpecification *col_spec = e_table_column_specification_new ();
- g_object_ref (col_spec);
e_table_column_specification_load_from_node (col_spec, children);
list = g_list_append (list, col_spec);
} else if (specification->state == NULL && !strcmp (children->name, "ETableState")) {
diff --git a/widgets/table/e-table-utils.c b/widgets/table/e-table-utils.c
index 76427ae464..eec4fc79d5 100644
--- a/widgets/table/e-table-utils.c
+++ b/widgets/table/e-table-utils.c
@@ -136,8 +136,10 @@ e_table_spec_to_full_header (ETableSpecification *spec,
ETableCol *col = et_col_spec_to_col (
spec->columns[column], ete, spec->domain);
- if (col)
+ if (col) {
e_table_header_add_column (nh, col, -1);
+ g_object_unref (col);
+ }
}
return nh;
diff --git a/widgets/table/e-table.c b/widgets/table/e-table.c
index 7ccb802236..8e4dfb00f3 100644
--- a/widgets/table/e-table.c
+++ b/widgets/table/e-table.c
@@ -1439,7 +1439,6 @@ et_real_construct (ETable *e_table, ETableModel *etm, ETableExtras *ete,
g_object_ref(ete);
else {
ete = e_table_extras_new();
- g_object_ref(ete);
}
e_table->domain = g_strdup (specification->domain);