shout2: Fix leak on error in start

This commit is contained in:
Nicolas Dufresne 2019-04-03 14:13:49 -04:00 committed by Nicolas Dufresne
parent 464ada3f29
commit bac8c00b85

View file

@ -522,6 +522,8 @@ set_failed:
{
GST_ELEMENT_ERROR (sink, LIBRARY, SETTINGS, (NULL),
("Error setting %s: %s", cur_prop, shout_get_error (sink->conn)));
shout_free (sink->conn);
sink->conn = NULL;
return FALSE;
}
}