diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2016-11-25 04:10:33 +0100 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2016-11-25 04:10:33 +0100 |
commit | 4a3f1fdfe1eb3743564adcee35d5513224339260 (patch) | |
tree | 1bcc97c9bd5abcf181b9f19294a0f187ff8af103 /plugins/shotwell-publishing/PicasaPublishing.vala | |
parent | 7152401783578b56343f578b4ec920998660de33 (diff) |
New upstream version 0.25.1upstream/0.25.1
Diffstat (limited to 'plugins/shotwell-publishing/PicasaPublishing.vala')
-rw-r--r-- | plugins/shotwell-publishing/PicasaPublishing.vala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/shotwell-publishing/PicasaPublishing.vala b/plugins/shotwell-publishing/PicasaPublishing.vala index 621ae12..facbd1b 100644 --- a/plugins/shotwell-publishing/PicasaPublishing.vala +++ b/plugins/shotwell-publishing/PicasaPublishing.vala @@ -562,7 +562,7 @@ internal class UploadTransaction : string metadata = METADATA_TEMPLATE.printf(Publishing.RESTSupport.decimal_entity_encode( publishable.get_param_string(Spit.Publishing.Publishable.PARAM_STRING_BASENAME)), summary, keywords_string); - Soup.Buffer metadata_buffer = new Soup.Buffer(Soup.MemoryUse.COPY, metadata.data); + var metadata_buffer = new Soup.Buffer.take (metadata.data); message_parts.append_form_file("", "", "application/atom+xml", metadata_buffer); // attempt to map the binary image data from disk into memory @@ -581,7 +581,7 @@ internal class UploadTransaction : // bind the binary image data read from disk into a Soup.Buffer object so that we // can attach it to the multipart request, then actaully append the buffer // to the multipart request. Then, set the MIME type for this part. - Soup.Buffer bindable_data = new Soup.Buffer(Soup.MemoryUse.TEMPORARY, photo_data); + var bindable_data = new Soup.Buffer.with_owner (photo_data, this, null); message_parts.append_form_file("", publishable.get_serialized_file().get_path(), mime_type, bindable_data); |