From a728d7a026896cc9b3fe68d00a689dee4c3312e1 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 5 Nov 2010 18:23:48 +0100 Subject: [PATCH] input/rewind: fix double free bug Duplicate the "mime" attribute of the inner input_stream object, instead of copying the pointer. --- NEWS | 2 ++ src/input/rewind_input_plugin.c | 1 + 2 files changed, 3 insertions(+) diff --git a/NEWS b/NEWS index 276956be0..3a61e1149 100644 --- a/NEWS +++ b/NEWS @@ -1,5 +1,7 @@ ver 0.15.14 (2010/??/??) * output_thread: fix assertion failure due to race condition in OPEN +* input: + - rewind: fix double free bug * decoders: - mp4ff, ffmpeg: add extension ".m4b" (audio book) 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); }