[evolution] [EHTMLEditorView] Fix two memory leaks



commit 61f59ada536d8b820931e4e597edb6f3444ed8f7
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 7e07b61..2871441 100644
--- a/e-util/e-html-editor-view.c
+++ b/e-util/e-html-editor-view.c
@@ -2340,6 +2340,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);
 }
@@ -7919,6 +7926,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]