aboutsummaryrefslogtreecommitdiffstats
path: root/src/input/rewind_input_plugin.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2010-11-05 18:23:48 +0100
committerMax Kellermann <max@duempel.org>2010-11-05 18:39:40 +0100
commita728d7a026896cc9b3fe68d00a689dee4c3312e1 (patch)
treeec86cb61e9b320fd1e2567e18d12e9d22829088c /src/input/rewind_input_plugin.c
parente8d8bd4c0db6322932b331638007e6f277a7e2bb (diff)
downloadmpd-a728d7a026896cc9b3fe68d00a689dee4c3312e1.tar.gz
mpd-a728d7a026896cc9b3fe68d00a689dee4c3312e1.tar.xz
mpd-a728d7a026896cc9b3fe68d00a689dee4c3312e1.zip
input/rewind: fix double free bug
Duplicate the "mime" attribute of the inner input_stream object, instead of copying the pointer.
Diffstat (limited to '')
-rw-r--r--src/input/rewind_input_plugin.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/input/rewind_input_plugin.c b/src/input/rewind_input_plugin.c
index 43f0254c9..c03f7f031 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);
}