dovecot-2.0: iostream: Call destroy callback after the destroy()...

dovecot at dovecot.org dovecot at dovecot.org
Mon Sep 13 18:18:38 EEST 2010


details:   http://hg.dovecot.org/dovecot-2.0/rev/18ab89f4d6a1
changeset: 12106:18ab89f4d6a1
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Sep 13 16:18:31 2010 +0100
description:
iostream: Call destroy callback after the destroy() method is called.

diffstat:

 src/lib/iostream.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (14 lines):

diff -r 90bdbeb132a7 -r 18ab89f4d6a1 src/lib/iostream.c
--- a/src/lib/iostream.c	Mon Sep 13 15:08:30 2010 +0100
+++ b/src/lib/iostream.c	Mon Sep 13 16:18:31 2010 +0100
@@ -30,9 +30,9 @@
 		return;
 
 	stream->close(stream);
+	stream->destroy(stream);
 	if (stream->destroy_callback != NULL)
 		stream->destroy_callback(stream->destroy_context);
-	stream->destroy(stream);
 
         i_free(stream->name);
         i_free(stream);


More information about the dovecot-cvs mailing list