input/mms: fix memory leak in error handler

This commit is contained in:
Max Kellermann 2010-05-18 20:57:57 +02:00
parent a1a03deed2
commit e98bd55cbf
2 changed files with 3 additions and 0 deletions

2
NEWS
View File

@ -1,4 +1,6 @@
ver 0.15.10 (2010/??/??) ver 0.15.10 (2010/??/??)
* input:
- mms: fix memory leak in error handler
* decoders: * decoders:
- mad: properly calculate ID3 size without libid3tag - mad: properly calculate ID3 size without libid3tag

View File

@ -49,6 +49,7 @@ input_mms_open(struct input_stream *is, const char *url)
m = g_new(struct input_mms, 1); m = g_new(struct input_mms, 1);
m->mms = mmsx_connect(NULL, NULL, url, 128 * 1024); m->mms = mmsx_connect(NULL, NULL, url, 128 * 1024);
if (m->mms == NULL) { if (m->mms == NULL) {
g_free(m);
g_warning("mmsx_connect() failed"); g_warning("mmsx_connect() failed");
return false; return false;
} }