aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-table-state.c
diff options
context:
space:
mode:
Diffstat (limited to 'widgets/table/e-table-state.c')
-rw-r--r--widgets/table/e-table-state.c2
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);