Index: src/vortex_connection.c =================================================================== --- src/vortex_connection.c (revision 3153) +++ src/vortex_connection.c (working copy) @@ -778,6 +778,11 @@ return vortex_connection_new_empty_from_connection (session, NULL, role); } +static int compare_pointer(axlPointer a, axlPointer b) +{ + return (intptr_t) a - (intptr_t) b; +} + /** * @internal * @@ -851,7 +856,7 @@ /* list to store handlers */ connection->on_close = axl_list_new (axl_list_always_return_1, NULL); - connection->on_close_full = axl_list_new (axl_list_always_return_1, axl_free); + connection->on_close_full = axl_list_new (compare_pointer, axl_free); /* mutexes */ vortex_mutex_create (&connection->ref_mutex); @@ -1508,7 +1513,7 @@ /* list to store handlers */ data->connection->on_close = axl_list_new (axl_list_always_return_1, NULL); - data->connection->on_close_full = axl_list_new (axl_list_always_return_1, axl_free); + data->connection->on_close_full = axl_list_new (compare_pointer, axl_free); /* establish the connection role and initial next channel * available. */