diff options
author | Dan Winship <danw@gnome.org> | 2009-07-23 16:27:01 -0400 |
---|---|---|
committer | Dan Winship <danw@gnome.org> | 2009-07-23 16:27:01 -0400 |
commit | 45067ab9e97de0992acd4004d6e4de957d6c28f4 (patch) | |
tree | fbe4433b6a05d467c995c492d0062d03a7131ae8 /gio/gsocketclient.c | |
parent | 66ff2542d32c93226a28ad1d0a60e83884b26910 (diff) | |
download | glib-45067ab9e97de0992acd4004d6e4de957d6c28f4.tar.gz |
Fix leaks in GSocketClient and GThreadedResolver
Also update gio/tests/send-data.c to test async connection, and free
more stuff in several tests to make leaks easier to see.
Diffstat (limited to 'gio/gsocketclient.c')
-rw-r--r-- | gio/gsocketclient.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gio/gsocketclient.c b/gio/gsocketclient.c index 72c942984..7908aec78 100644 --- a/gio/gsocketclient.c +++ b/gio/gsocketclient.c @@ -676,6 +676,7 @@ g_socket_client_async_connect_complete (GSocketClientAsyncConnectData *data) g_socket_set_blocking (data->current_socket, TRUE); connection = g_socket_connection_factory_create_connection (data->current_socket); + g_object_unref (data->current_socket); g_simple_async_result_set_op_res_gpointer (data->result, connection, g_object_unref); @@ -683,6 +684,8 @@ g_socket_client_async_connect_complete (GSocketClientAsyncConnectData *data) g_simple_async_result_complete (data->result); g_object_unref (data->result); + g_object_unref (data->enumerator); + g_slice_free (GSocketClientAsyncConnectData, data); } |