diff options
author | Max Kellermann <max@duempel.org> | 2010-01-18 09:57:53 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2010-01-18 09:57:53 +0100 |
commit | fb9bd53328e3ff57ea4b3cfee24068f9fb54927b (patch) | |
tree | e350fdb14ebf8916897797c59527f25d703d3883 /src/input | |
parent | a0a26d3341022552984a3307393a8f701f350edc (diff) | |
download | mpd-fb9bd53328e3ff57ea4b3cfee24068f9fb54927b.tar.gz mpd-fb9bd53328e3ff57ea4b3cfee24068f9fb54927b.tar.xz mpd-fb9bd53328e3ff57ea4b3cfee24068f9fb54927b.zip |
input_stream: added function input_stream_deinit()
All close() implementations must call this method.
Diffstat (limited to 'src/input')
-rw-r--r-- | src/input/curl_input_plugin.c | 1 | ||||
-rw-r--r-- | src/input/file_input_plugin.c | 1 | ||||
-rw-r--r-- | src/input/mms_input_plugin.c | 1 | ||||
-rw-r--r-- | src/input/rewind_input_plugin.c | 1 |
4 files changed, 4 insertions, 0 deletions
diff --git a/src/input/curl_input_plugin.c b/src/input/curl_input_plugin.c index c54d994e8..1b759b4fc 100644 --- a/src/input/curl_input_plugin.c +++ b/src/input/curl_input_plugin.c @@ -195,6 +195,7 @@ input_curl_free(struct input_curl *c) g_queue_free(c->buffers); g_free(c->url); + input_stream_deinit(&c->base); g_free(c); } diff --git a/src/input/file_input_plugin.c b/src/input/file_input_plugin.c index 1c5813f88..173b7c2e8 100644 --- a/src/input/file_input_plugin.c +++ b/src/input/file_input_plugin.c @@ -136,6 +136,7 @@ input_file_close(struct input_stream *is) struct file_input_stream *fis = (struct file_input_stream *)is; close(fis->fd); + input_stream_deinit(&fis->base); g_free(fis); } diff --git a/src/input/mms_input_plugin.c b/src/input/mms_input_plugin.c index 5055eb05e..31a75fdba 100644 --- a/src/input/mms_input_plugin.c +++ b/src/input/mms_input_plugin.c @@ -103,6 +103,7 @@ input_mms_close(struct input_stream *is) struct input_mms *m = (struct input_mms *)is; mmsx_close(m->mms); + input_stream_deinit(&m->base); g_free(m); } diff --git a/src/input/rewind_input_plugin.c b/src/input/rewind_input_plugin.c index 2804dd1b2..e82d4ecb9 100644 --- a/src/input/rewind_input_plugin.c +++ b/src/input/rewind_input_plugin.c @@ -98,6 +98,7 @@ input_rewind_close(struct input_stream *is) input_stream_close(r->input); + input_stream_deinit(&r->base); g_free(r); } |