diff --git a/ext/shout2/gstshout2.c b/ext/shout2/gstshout2.c index 3d3f652dd3..9e2d60f4da 100644 --- a/ext/shout2/gstshout2.c +++ b/ext/shout2/gstshout2.c @@ -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; } }