input/mms: fix memory leak in error handler
This commit is contained in:
parent
a1a03deed2
commit
e98bd55cbf
2
NEWS
2
NEWS
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue