[glib-networking/mcatanzaro/base-rebase] Fix GSource leak in test_async_implicit_handshake()



commit 43050f1ba1c527a9f5ef8cb3af41a8c72152266f
Author: Michael Catanzaro <mcatanzaro igalia com>
Date:   Tue May 14 13:30:26 2019 -0500

    Fix GSource leak in test_async_implicit_handshake()
    
    It's unclear why this was not previously a problem, but we certainly
    need to unref the source after attaching it.

 tls/tests/connection.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/tls/tests/connection.c b/tls/tests/connection.c
index 9e54a84..cd7f375 100644
--- a/tls/tests/connection.c
+++ b/tls/tests/connection.c
@@ -1852,6 +1852,7 @@ test_async_implicit_handshake (TestConnection *test, gconstpointer   data)
                          test, NULL);
 
   g_source_attach (input_source, NULL);
+  g_source_unref (input_source);
 
   g_main_loop_run (test->loop);
 


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