mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-10-03 01:02:19 +00:00
shout2: Fix leak on error in start
This commit is contained in:
parent
464ada3f29
commit
bac8c00b85
1 changed files with 2 additions and 0 deletions
|
@ -522,6 +522,8 @@ set_failed:
|
||||||
{
|
{
|
||||||
GST_ELEMENT_ERROR (sink, LIBRARY, SETTINGS, (NULL),
|
GST_ELEMENT_ERROR (sink, LIBRARY, SETTINGS, (NULL),
|
||||||
("Error setting %s: %s", cur_prop, shout_get_error (sink->conn)));
|
("Error setting %s: %s", cur_prop, shout_get_error (sink->conn)));
|
||||||
|
shout_free (sink->conn);
|
||||||
|
sink->conn = NULL;
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue