aboutsummaryrefslogtreecommitdiffstats
path: root/src/input_stream.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2010-01-18 09:57:53 +0100
committerMax Kellermann <max@duempel.org>2010-01-18 09:57:53 +0100
commitfb9bd53328e3ff57ea4b3cfee24068f9fb54927b (patch)
treee350fdb14ebf8916897797c59527f25d703d3883 /src/input_stream.h
parenta0a26d3341022552984a3307393a8f701f350edc (diff)
downloadmpd-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_stream.h')
-rw-r--r--src/input_stream.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/input_stream.h b/src/input_stream.h
index e48f7eb26..05ef257f9 100644
--- a/src/input_stream.h
+++ b/src/input_stream.h
@@ -76,6 +76,12 @@ input_stream_init(struct input_stream *is, const struct input_plugin *plugin)
is->mime = NULL;
}
+static inline void
+input_stream_deinit(struct input_stream *is)
+{
+ g_free(is->mime);
+}
+
/**
* Opens a new input stream. You may not access it until the "ready"
* flag is set.