[libsoup] tests: fix small leaks in server-test



commit c8ee290143c2e33c8fd892c5e738d227246cb18b
Author: Marc-André Lureau <marcandre lureau gmail com>
Date:   Sat Feb 21 00:17:04 2015 +0100

    tests: fix small leaks in server-test
    
    Pushed as trivial without review.

 tests/server-test.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/tests/server-test.c b/tests/server-test.c
index 25b02c2..47ce43a 100644
--- a/tests/server-test.c
+++ b/tests/server-test.c
@@ -487,6 +487,7 @@ do_gsocket_import_test (void)
 
        gaddr = g_socket_get_local_address (gsock, &error);
        g_assert_no_error (error);
+       g_object_unref (gaddr);
 
        server = soup_test_server_new (SOUP_TEST_SERVER_NO_DEFAULT_LISTENER);
        soup_server_add_handler (server, NULL, server_callback, NULL, NULL);
@@ -550,6 +551,7 @@ do_fd_import_test (void)
 
        gaddr = g_socket_get_local_address (gsock, &error);
        g_assert_no_error (error);
+       g_object_unref (gaddr);
 
        server = soup_test_server_new (SOUP_TEST_SERVER_NO_DEFAULT_LISTENER);
        soup_server_add_handler (server, NULL, server_callback, NULL, NULL);


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