# HG changeset patch # User Mikael Hallendal # Date 1213960824 -7200 # Node ID 73551e44fc87e63800f90c4a79135cc43779725b # Parent 28db6371a13bb1ec71e5767c7cb5735845deb071 Use GSlice for allocation of LmConnection instead of g_new. diff -r 28db6371a13b -r 73551e44fc87 loudmouth/lm-connection.c --- a/loudmouth/lm-connection.c Fri Jun 20 13:14:47 2008 +0200 +++ b/loudmouth/lm-connection.c Fri Jun 20 13:20:24 2008 +0200 @@ -254,7 +254,7 @@ lm_socket_unref (connection->socket); } - g_free (connection); + g_slice_free (LmConnection, connection); } static LmHandlerResult @@ -1183,7 +1183,7 @@ lm_debug_init (); _lm_sock_library_init (); - connection = g_new0 (LmConnection, 1); + connection = g_slice_new0 (LmConnection); if (server) { connection->server = _lm_utils_hostname_to_punycode (server);