From: Martti Rannanjärvi Date: Tue, 19 Apr 2016 11:09:01 +0000 (+0300) Subject: lib: remove unneccesary i_stream_unrefs of parent X-Git-Tag: 2.3.0.rc1~3985 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=899653bd8261ee9fe989aec0b1221a47e0de23cd;p=thirdparty%2Fdovecot%2Fcore.git lib: remove unneccesary i_stream_unrefs of parent --- diff --git a/src/lib/istream-failure-at.c b/src/lib/istream-failure-at.c index 9eb60f9889..fd4332c522 100644 --- a/src/lib/istream-failure-at.c +++ b/src/lib/istream-failure-at.c @@ -16,7 +16,6 @@ static void i_stream_failure_at_destroy(struct iostream_private *stream) (struct failure_at_istream *)stream; i_free(fstream->error_string); - i_stream_unref(&fstream->istream.parent); } static ssize_t diff --git a/src/lib/istream-limit.c b/src/lib/istream-limit.c index 04e25826c7..cf66e2433e 100644 --- a/src/lib/istream-limit.c +++ b/src/lib/istream-limit.c @@ -21,7 +21,6 @@ static void i_stream_limit_destroy(struct iostream_private *stream) /* get to same position in parent stream */ i_stream_seek(lstream->istream.parent, v_offset); } - i_stream_unref(&lstream->istream.parent); } static ssize_t i_stream_limit_read(struct istream_private *stream) diff --git a/src/lib/istream-rawlog.c b/src/lib/istream-rawlog.c index 82ba2db428..53a0f06848 100644 --- a/src/lib/istream-rawlog.c +++ b/src/lib/istream-rawlog.c @@ -33,7 +33,6 @@ static void i_stream_rawlog_destroy(struct iostream_private *stream) /* get to same position in parent stream */ i_stream_seek(rstream->istream.parent, v_offset); } - i_stream_unref(&rstream->istream.parent); } static ssize_t i_stream_rawlog_read(struct istream_private *stream) diff --git a/src/lib/istream-sized.c b/src/lib/istream-sized.c index 810af19243..5b566520f1 100644 --- a/src/lib/istream-sized.c +++ b/src/lib/istream-sized.c @@ -26,7 +26,6 @@ static void i_stream_sized_destroy(struct iostream_private *stream) /* get to same position in parent stream */ i_stream_seek(sstream->istream.parent, v_offset); } - i_stream_unref(&sstream->istream.parent); } static const char *