aboutsummaryrefslogtreecommitdiffstats
path: root/widgets
diff options
context:
space:
mode:
authorLarry Ewing <lewing@ximian.com>2003-06-19 23:31:31 +0800
committerLarry Ewing <lewing@src.gnome.org>2003-06-19 23:31:31 +0800
commitf64e3ca963925988720189c5924c7cf0d7019cdb (patch)
treea09ae01854c88d706bf39c95327d6c63d40e6268 /widgets
parent389bc81e90de0b14d07c0a7cc3208f8fbec46097 (diff)
downloadgsoc2013-evolution-f64e3ca963925988720189c5924c7cf0d7019cdb.tar
gsoc2013-evolution-f64e3ca963925988720189c5924c7cf0d7019cdb.tar.gz
gsoc2013-evolution-f64e3ca963925988720189c5924c7cf0d7019cdb.tar.bz2
gsoc2013-evolution-f64e3ca963925988720189c5924c7cf0d7019cdb.tar.lz
gsoc2013-evolution-f64e3ca963925988720189c5924c7cf0d7019cdb.tar.xz
gsoc2013-evolution-f64e3ca963925988720189c5924c7cf0d7019cdb.tar.zst
gsoc2013-evolution-f64e3ca963925988720189c5924c7cf0d7019cdb.zip
remove extra ref, the count starts at one.
2003-06-19 Larry Ewing <lewing@ximian.com> * e-table-specification.c (e_table_specification_load_from_node): remove extra ref, the count starts at one. * e-table-utils.c (e_table_spec_to_full_header): add_column adds a reference, so drop the intial reference. * e-table.c (et_real_construct):remove extra ref, count starts at one. svn path=/trunk/; revision=21479
Diffstat (limited to 'widgets')
-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);