From e98bd55cbf850f17fa3b7339c659791834e9aaa8 Mon Sep 17 00:00:00 2001
From: Max Kellermann <max@duempel.org>
Date: Tue, 18 May 2010 20:57:57 +0200
Subject: input/mms: fix memory leak in error handler

---
 src/input/mms_input_plugin.c | 1 +
 1 file changed, 1 insertion(+)

(limited to 'src/input')

diff --git a/src/input/mms_input_plugin.c b/src/input/mms_input_plugin.c
index 2a3c53776..eb3a5cedb 100644
--- a/src/input/mms_input_plugin.c
+++ b/src/input/mms_input_plugin.c
@@ -49,6 +49,7 @@ input_mms_open(struct input_stream *is, const char *url)
 	m = g_new(struct input_mms, 1);
 	m->mms = mmsx_connect(NULL, NULL, url, 128 * 1024);
 	if (m->mms == NULL) {
+		g_free(m);
 		g_warning("mmsx_connect() failed");
 		return false;
 	}
-- 
cgit v1.2.3


From 28736414a8b1ae4878d4d18f042a9c04ef7dd6c5 Mon Sep 17 00:00:00 2001
From: Max Kellermann <max@duempel.org>
Date: Tue, 18 May 2010 21:11:00 +0200
Subject: input/mms: initialize the "eof" attribute

---
 src/input/mms_input_plugin.c | 2 ++
 1 file changed, 2 insertions(+)

(limited to 'src/input')

diff --git a/src/input/mms_input_plugin.c b/src/input/mms_input_plugin.c
index eb3a5cedb..25e3129d9 100644
--- a/src/input/mms_input_plugin.c
+++ b/src/input/mms_input_plugin.c
@@ -54,6 +54,8 @@ input_mms_open(struct input_stream *is, const char *url)
 		return false;
 	}
 
+	m->eof = false;
+
 	/* XX is this correct?  at least this selects the ffmpeg
 	   decoder, which seems to work fine*/
 	is->mime = g_strdup("audio/x-ms-wma");
-- 
cgit v1.2.3