[evolution-ews/wip/mcrha/soup3] Adapt to e_soup_session_util_ref_message_request_body() change



commit 5c9280787bd65a3e3adb7c0a83571b5b7d07ec06
Author: Milan Crha <mcrha redhat com>
Date:   Thu Apr 21 16:51:49 2022 +0200

    Adapt to e_soup_session_util_ref_message_request_body() change

 src/Microsoft365/common/e-m365-connection.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/src/Microsoft365/common/e-m365-connection.c b/src/Microsoft365/common/e-m365-connection.c
index 560b60aa..889dc670 100644
--- a/src/Microsoft365/common/e-m365-connection.c
+++ b/src/Microsoft365/common/e-m365-connection.c
@@ -1683,7 +1683,7 @@ e_m365_connection_batch_request_internal_sync (EM365Connection *cnc,
                if (has_headers)
                        e_m365_json_end_object_member (builder); /* headers */
 
-               request_body = e_soup_session_util_get_message_request_body (submessage, 
&request_body_length);
+               request_body = e_soup_session_util_ref_message_request_body (submessage, 
&request_body_length);
 
                if (request_body && request_body_length > 0) {
                        if (is_application_json) {
@@ -1732,6 +1732,8 @@ e_m365_connection_batch_request_internal_sync (EM365Connection *cnc,
                }
 
                e_m365_json_end_object_member (builder); /* unnamed object */
+
+               g_clear_object (&request_body);
        }
 
        e_m365_json_end_array_member (builder);


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