[glib/glib-2-64: 1/7] tests: Fix a memory leak in gdbus-server-auth



commit de0fae3d4958c16ac01c295b20027e5bcff29d1e
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]