[evolution] ETable: Fix a leak of an ETreeModel
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] ETable: Fix a leak of an ETreeModel
- Date: Tue, 30 Sep 2014 16:11:01 +0000 (UTC)
commit 9fd7f3671aee3467301888220bf980a5e4bbd138
Author: Milan Crha <mcrha redhat com>
Date: Tue Sep 30 18:09:03 2014 +0200
ETable: Fix a leak of an ETreeModel
There were added two references to the ETreeModel, one at et_real_construct(),
the other at e_table_construct(), but only one of them had been removed,
which effectively caused a leak of the ETreeModel instance.
e-util/e-table.c | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/e-util/e-table.c b/e-util/e-table.c
index 10c370d..5780c23 100644
--- a/e-util/e-table.c
+++ b/e-util/e-table.c
@@ -1903,8 +1903,6 @@ e_table_construct (ETable *e_table,
g_return_val_if_fail (ete == NULL || E_IS_TABLE_EXTRAS (ete), NULL);
g_return_val_if_fail (E_IS_TABLE_SPECIFICATION (specification), NULL);
- g_object_ref (etm);
-
state = g_object_ref (specification->state);
e_table = et_real_construct (e_table, etm, ete, specification, state);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]