From a728d7a026896cc9b3fe68d00a689dee4c3312e1 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 5 Nov 2010 18:23:48 +0100 Subject: input/rewind: fix double free bug Duplicate the "mime" attribute of the inner input_stream object, instead of copying the pointer. --- src/input/rewind_input_plugin.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/input') diff --git a/src/input/rewind_input_plugin.c b/src/input/rewind_input_plugin.c index 43f0254c..c03f7f03 100644 --- a/src/input/rewind_input_plugin.c +++ b/src/input/rewind_input_plugin.c @@ -244,4 +244,5 @@ input_rewind_open(struct input_stream *is) input stream */ is->plugin = &rewind_input_plugin; is->data = c; + is->mime = g_strdup(c->input.mime); } -- cgit v1.2.3