[evolution] EHTMLEditorSelection - Don't leak font-color



commit 36d4b06b38bb9a86d675811b17992eea4b32ecc5
Author: Tomas Popela <tpopela redhat com>
Date:   Fri Nov 14 12:15:33 2014 +0100

    EHTMLEditorSelection - Don't leak font-color

 e-util/e-html-editor-selection.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/e-util/e-html-editor-selection.c b/e-util/e-html-editor-selection.c
index 7299304..5a7b6ea 100644
--- a/e-util/e-html-editor-selection.c
+++ b/e-util/e-html-editor-selection.c
@@ -2537,6 +2537,7 @@ e_html_editor_selection_set_font_color (EHTMLEditorSelection *selection,
 
        command = E_HTML_EDITOR_VIEW_COMMAND_FORE_COLOR;
        color = g_strdup_printf ("#%06x", rgba_value);
+       g_free (selection->priv->font_color);
        selection->priv->font_color = g_strdup (color);
        e_html_editor_view_exec_command (view, command, color);
        g_free (color);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]