summaryrefslogtreecommitdiff
path: root/libsoup/soup-multipart.c
diff options
context:
space:
mode:
Diffstat (limited to 'libsoup/soup-multipart.c')
-rw-r--r--libsoup/soup-multipart.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libsoup/soup-multipart.c b/libsoup/soup-multipart.c
index 1e11aa59..d2ea1b5b 100644
--- a/libsoup/soup-multipart.c
+++ b/libsoup/soup-multipart.c
@@ -53,7 +53,7 @@ soup_multipart_new_internal (char *mime_type, char *boundary)
multipart = g_slice_new (SoupMultipart);
multipart->mime_type = mime_type;
multipart->boundary = boundary;
- multipart->headers = g_ptr_array_new_with_free_func ((GDestroyNotify)soup_message_headers_free);
+ multipart->headers = g_ptr_array_new_with_free_func ((GDestroyNotify)soup_message_headers_unref);
multipart->bodies = g_ptr_array_new_with_free_func ((GDestroyNotify)g_bytes_unref);
return multipart;