[evolution] EHTMLEditorView - Don't leak generated cid when creating new parts for inline images



commit f0c47a3564dc449bee44c1a96d7a18098d66728d
Author: Tomas Popela <tpopela redhat com>
Date:   Wed Dec 3 13:08:54 2014 +0100

    EHTMLEditorView - Don't leak generated cid when creating new parts for inline images

 e-util/e-html-editor-view.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/e-util/e-html-editor-view.c b/e-util/e-html-editor-view.c
index eaa1354..02822ea 100644
--- a/e-util/e-html-editor-view.c
+++ b/e-util/e-html-editor-view.c
@@ -8177,6 +8177,7 @@ e_html_editor_view_add_inline_image_from_element (EHTMLEditorView *view,
 
        cid = camel_header_msgid_generate (uid_domain);
        camel_mime_part_set_content_id (part, cid);
+       g_free (cid);
        name = webkit_dom_element_get_attribute (element, "data-name");
        camel_mime_part_set_filename (part, name);
        g_free (name);


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