[evolution-data-server] EOAuth2Service: Correct free function for GBytes structure



commit a230245bca1e4e651b992479ce99232440fce922
Author: Milan Crha <mcrha redhat com>
Date:   Fri Jul 15 08:37:46 2022 +0200

    EOAuth2Service: Correct free function for GBytes structure
    
    It's not a GObject, but a bare structure, using its own unref() function.

 src/libedataserver/e-oauth2-service.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/src/libedataserver/e-oauth2-service.c b/src/libedataserver/e-oauth2-service.c
index 290534dfb..5a21872d0 100644
--- a/src/libedataserver/e-oauth2-service.c
+++ b/src/libedataserver/e-oauth2-service.c
@@ -932,8 +932,7 @@ eos_send_message (SoupSession *session,
                g_string_free (error_msg, TRUE);
        }
 
-       if (response_body)
-               g_object_unref (response_body);
+       g_clear_pointer (&response_body, g_bytes_unref);
 
        return success;
 }


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