diff options
author | Federico Mena Quintero <federico@helixcode.com> | 2000-12-08 00:24:42 +0800 |
---|---|---|
committer | Federico Mena Quintero <federico@src.gnome.org> | 2000-12-08 00:24:42 +0800 |
commit | a22a4c17a5796ed4aa4249f6154b7d3321bd6709 (patch) | |
tree | 0ff4b2d36582a13a251907672720728c4f30702e /widgets/table/e-table-state.c | |
parent | dbd0b894c29ae2903b97dab4ee920badea62f074 (diff) | |
download | gsoc2013-evolution-a22a4c17a5796ed4aa4249f6154b7d3321bd6709.tar gsoc2013-evolution-a22a4c17a5796ed4aa4249f6154b7d3321bd6709.tar.gz gsoc2013-evolution-a22a4c17a5796ed4aa4249f6154b7d3321bd6709.tar.bz2 gsoc2013-evolution-a22a4c17a5796ed4aa4249f6154b7d3321bd6709.tar.lz gsoc2013-evolution-a22a4c17a5796ed4aa4249f6154b7d3321bd6709.tar.xz gsoc2013-evolution-a22a4c17a5796ed4aa4249f6154b7d3321bd6709.tar.zst gsoc2013-evolution-a22a4c17a5796ed4aa4249f6154b7d3321bd6709.zip |
Free the xmlDoc when we are done with it. (e_table_state_save_to_file):
2000-12-07 Federico Mena Quintero <federico@helixcode.com>
* e-table-state.c (e_table_state_save_to_string): Free the xmlDoc
when we are done with it.
(e_table_state_save_to_file): Ditto.
* e-table.c (e_table_get_state): Unref the state object; why was
it being sunk instead?
(e_table_save_state): Ditto.
(e_table_load_state): Ditto.
(e_table_set_state): Ditto.
* e-table-header-item.c (ethi_destroy): Free the ethi->dnd_code.
svn path=/trunk/; revision=6837
Diffstat (limited to 'widgets/table/e-table-state.c')
-rw-r--r-- | widgets/table/e-table-state.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/widgets/table/e-table-state.c b/widgets/table/e-table-state.c index 9361f4f940..36c7293267 100644 --- a/widgets/table/e-table-state.c +++ b/widgets/table/e-table-state.c @@ -117,6 +117,7 @@ e_table_state_save_to_file (ETableState *state, doc = xmlNewDoc("1.0"); xmlDocSetRootElement(doc, e_table_state_save_to_node(state, NULL)); xmlSaveFile(filename, doc); + xmlFreeDoc(doc); } char * @@ -130,6 +131,7 @@ e_table_state_save_to_string (ETableState *state) doc = xmlNewDoc(NULL); xmlDocSetRootElement(doc, e_table_state_save_to_node(state, NULL)); xmlDocDumpMemory(doc, &string, &length); + xmlFreeDoc(doc); ret_val = g_strdup(string); xmlFree(string); |