From fb9bd53328e3ff57ea4b3cfee24068f9fb54927b Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 18 Jan 2010 09:57:53 +0100 Subject: input_stream: added function input_stream_deinit() All close() implementations must call this method. --- src/input_stream.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/input_stream.h') 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. -- cgit v1.2.3