diff src/pop3/client.c @ 4070:71b8faa84ec6 HEAD

Added i_stream_destroy() and o_stream_destroy() and used them instead of *_stream_unref() where possible. Fixes at least one problem with io_remove() being called after socket was closed, which caused problems with epoll.
author Timo Sirainen <tss@iki.fi>
date Sun, 26 Feb 2006 12:04:59 +0200
parents 23e76fc59a35
children 904c53275e83
line wrap: on
line diff
--- a/src/pop3/client.c	Sat Feb 25 13:29:05 2006 +0200
+++ b/src/pop3/client.c	Sun Feb 26 12:04:59 2006 +0200
@@ -230,8 +230,8 @@
 	if (client->io != NULL)
 		io_remove(&client->io);
 
-	i_stream_unref(&client->input);
-	o_stream_unref(&client->output);
+	i_stream_destroy(&client->input);
+	o_stream_destroy(&client->output);
 
 	if (close(client->fd_in) < 0)
 		i_error("close(client in) failed: %m");