diff options
author | Nicolas Dufresne <nicolas.dufresne@collabora.com> | 2019-04-03 14:13:49 -0400 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2019-05-06 23:43:07 +0200 |
commit | 438aebfa2312dea22666407e1c2714ae17507a59 (patch) | |
tree | 7ca4d32477ee92e385dff782a5deeb0a54777691 | |
parent | c8ef081d315d0942eac31480c2db44618e7492d2 (diff) | |
download | gstreamer-plugins-good-438aebfa2312dea22666407e1c2714ae17507a59.tar.gz |
shout2: Fix leak on error in start
-rw-r--r-- | ext/shout2/gstshout2.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/shout2/gstshout2.c b/ext/shout2/gstshout2.c index 3d3f652dd..9e2d60f4d 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; } } |