aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-mime-part.c
diff options
context:
space:
mode:
Diffstat (limited to 'camel/camel-mime-part.c')
-rw-r--r--camel/camel-mime-part.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/camel/camel-mime-part.c b/camel/camel-mime-part.c
index 5fb2775ca1..86ac9c0b13 100644
--- a/camel/camel-mime-part.c
+++ b/camel/camel-mime-part.c
@@ -468,8 +468,8 @@ set_content_object (CamelMedium *medium, CamelDataWrapper *content)
char *txt;
txt = header_content_type_format(object_content_field?object_content_field->content_type:NULL);
- camel_medium_set_header (CAMEL_MEDIUM (mime_part),
- "Content-Type", txt);
+ camel_medium_set_header (CAMEL_MEDIUM (mime_part), "Content-Type", txt);
+ g_free(txt);
}
}