GitLab repository storage has been migrated to hashed layout. Please contact Infrastructure team if you notice any issues with repositories or hooks.

Commit fec7f82a authored by Milan Crha's avatar Milan Crha

Fix two memory leaks

parent 2d0116a9
......@@ -3607,7 +3607,7 @@ set_signature_gui (EMsgComposer *composer)
EContentEditor *cnt_editor;
EComposerHeaderTable *table;
EMailSignatureComboBox *combo_box;
gchar *uid = NULL;
gchar *uid;
table = e_msg_composer_get_header_table (composer);
combo_box = e_composer_header_table_get_signature_combo_box (table);
......@@ -3615,9 +3615,11 @@ set_signature_gui (EMsgComposer *composer)
editor = e_msg_composer_get_editor (composer);
cnt_editor = e_html_editor_get_content_editor (editor);
if ((uid = e_content_editor_get_current_signature_uid (cnt_editor))) {
uid = e_content_editor_get_current_signature_uid (cnt_editor);
if (uid) {
/* The combo box active ID is the signature's ESource UID. */
gtk_combo_box_set_active_id (GTK_COMBO_BOX (combo_box), uid);
g_free (uid);
}
}
......
......@@ -512,7 +512,7 @@ e_mail_templates_apply_sync (CamelMimeMessage *source_message,
/* Add the headers from the message we are replying to, so CC and that
* stuff is preserved. Also replace any $ORIG[header-name] modifiers ignoring
* 'content-*' headers */
headers = camel_medium_dup_headers (CAMEL_MEDIUM (source_message));
headers = camel_medium_get_headers (CAMEL_MEDIUM (source_message));
len = camel_name_value_array_get_length (headers);
for (ii = 0; ii < len; ii++) {
const gchar *header_name = NULL, *header_value = NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment