[evolution/wip/webkit2] [EHTMLEditorView] Fix two memory leaks
- From: Tomas Popela <tpopela src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/wip/webkit2] [EHTMLEditorView] Fix two memory leaks
- Date: Thu, 27 Nov 2014 17:08:06 +0000 (UTC)
commit f30f0e030b81b121e8f214601544b266651aa4c3
Author: Milan Crha <mcrha redhat com>
Date: Fri Nov 21 15:04:09 2014 +0100
[EHTMLEditorView] Fix two memory leaks
e-util/e-html-editor-view.c | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/e-util/e-html-editor-view.c b/e-util/e-html-editor-view.c
index 1c15b91..f80480a 100644
--- a/e-util/e-html-editor-view.c
+++ b/e-util/e-html-editor-view.c
@@ -1374,6 +1374,13 @@ html_editor_view_finalize (GObject *object)
priv->old_settings = NULL;
}
+ if (priv->post_reload_operations) {
+ g_warn_if_fail (g_queue_is_empty (priv->post_reload_operations));
+
+ g_queue_free (priv->post_reload_operations);
+ priv->post_reload_operations = NULL;
+ }
+
/* Chain up to parent's finalize() method. */
G_OBJECT_CLASS (e_html_editor_view_parent_class)->finalize (object);
}
@@ -3369,6 +3376,9 @@ e_html_editor_view_update_fonts (EHTMLEditorView *view)
" color: %s !important; \n",
citation_color);
+ g_free (citation_color);
+ citation_color = NULL;
+
g_string_append (stylesheet, "}\n");
g_string_append (
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]