[glib/wip/pwithnall/1954-dbus-keyring-handling: 4/9] tests: Fix a memory leak in gdbus-server-auth



commit 6978a4f87a461ea1010163087879dac9fc79f020
Author: Philip Withnall <withnall endlessm com>
Date:   Tue May 5 15:48:30 2020 +0100

    tests: Fix a memory leak in gdbus-server-auth
    
    Signed-off-by: Philip Withnall <withnall endlessm com>

 gio/tests/gdbus-server-auth.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/gio/tests/gdbus-server-auth.c b/gio/tests/gdbus-server-auth.c
index d8b361fc6..e782bd3d7 100644
--- a/gio/tests/gdbus-server-auth.c
+++ b/gio/tests/gdbus-server-auth.c
@@ -152,6 +152,7 @@ whoami_filter_cb (GDBusConnection *connection,
       g_dbus_connection_send_message (connection, reply,
                                       G_DBUS_SEND_MESSAGE_FLAGS_NONE,
                                       NULL, NULL);
+      g_object_unref (reply);
 
       /* handled */
       g_object_unref (message);


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